1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Diagnostic panel support

This commit is contained in:
Brian Fiete 2020-07-31 06:17:07 -07:00
parent f034880723
commit 2e656e88f3

View file

@ -357,9 +357,15 @@ namespace IDE.Debugger
[CallingConvention(.Stdcall),CLink]
static extern char8* Debugger_GetHotResolveData(uint8* outTypeData, int32* outTypeDataSize);
[CallingConvention(.Stdcall),CLink]
static extern char8* Debugger_GetDbgAllocInfo();
[CallingConvention(.Stdcall),CLink]
static extern void Debugger_SetAliasPath(char8* origPath, char8* localPath);
[CallingConvention(.Stdcall),CLink]
static extern int Debugger_GetDbgAllocHeapSize();
public String mRunningPath ~ delete _;
public bool mIsRunning;
public bool mIsRunningCompiled;
@ -1139,6 +1145,12 @@ namespace IDE.Debugger
return true;
}
public void GetDbgAllocInfo(String outInfo)
{
char8* result = Debugger_GetDbgAllocInfo();
outInfo.Append(result);
}
public static void GetFailString(StringView result, StringView expr, String outFailStr)
{
Debug.Assert(result[0] == '!');
@ -1182,5 +1194,10 @@ namespace IDE.Debugger
{
Debugger_SetAliasPath(origPath, localPath);
}
public int GetDbgAllocHeapSize()
{
return Debugger_GetDbgAllocHeapSize();
}
}
}