mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-07 19:13:20 +00:00
1. added .msh flag for HECI debug
2. Fixed _GenericMarshal crash on Windows if GlobalCallback is executed after GC
This commit is contained in:
@@ -1514,6 +1514,8 @@ void ILibDuktape_GlobalGenericCallback_ProcessEx(void *chain, void *user)
|
||||
int i;
|
||||
//void *retVal = NULL;
|
||||
Duktape_GlobalGeneric_Data *data = (Duktape_GlobalGeneric_Data*)user;
|
||||
if (!ILibMemory_CanaryOK(data->emitter)) { return; }
|
||||
|
||||
char tmp[255];
|
||||
sprintf_s(tmp, sizeof(tmp), "%ul", data->callingThread);
|
||||
duk_push_heapptr(data->emitter->ctx, data->emitter->object); // [obj]
|
||||
|
||||
Reference in New Issue
Block a user