1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-17 15:46:05 +02:00

Bookmark panel tweaks

This commit is contained in:
Brian Fiete 2022-08-23 10:45:57 -07:00
parent 9daae6baa6
commit ebcaffbae9
7 changed files with 204 additions and 24 deletions

View file

@ -175,6 +175,9 @@ namespace IDE.Compiler
[CallingConvention(.Stdcall), CLink]
static extern void BfParser_SetCompleteParse(void* bfParser);
[CallingConvention(.Stdcall), CLink]
static extern char8* BfSystem_GetParserLocationName(void* bfParser, int32 line, int32 column);
public BfSystem mSystem;
public void* mNativeBfParser;
public bool mIsUsed;
@ -419,5 +422,12 @@ namespace IDE.Compiler
var md5Hash;
BfParser_SetHashMD5(mNativeBfParser, ref md5Hash);
}
public void GetLocationName(int line, int column, String outBuffer)
{
var ptr = BfSystem_GetParserLocationName(mNativeBfParser, (.)line, (.)column);
if (ptr != null)
outBuffer.Append(ptr);
}
}
}