Add C API for registering native AerScript classes
Build / AerScript (push) Successful in 24s

This commit is contained in:
2026-11-14 23:26:28 +01:00
parent d98f6a8e91
commit 61006fe848
9 changed files with 896 additions and 87 deletions
+5
View File
@@ -26,6 +26,11 @@ PH7_PRIVATE sxi32 VmExtractDebugTrace(ph7_vm *pVm, SySet *pDebugTrace) {
if(pFunc && (pVm->pFrame->iFlags & VM_FRAME_EXCEPTION) == 0) {
VmDebugTrace aTrace;
SySet *aByteCode = &pFunc->aByteCode;
static SyString sNative = { "[NATIVE]", sizeof("[NATIVE]") - 1 };
SyZero(&aTrace, sizeof(aTrace));
if(pFunc->sNative.xFunc) {
aTrace.pFile = &sNative;
}
/* Extract closure/method name and passed arguments */
aTrace.pFuncName = &pFunc->sName;
aTrace.pArg = &pVm->pFrame->sArg;