Closed saghul closed 8 years ago
We should set the udata field in duk_create_heap, and then use http://duktape.org/api.html#duk_get_memory_functions to get the pointer back.
udata
duk_create_heap
Something like sjs_vm_get_vm(duk_context* ctx)
sjs_vm_get_vm(duk_context* ctx)
We should set the
udata
field induk_create_heap
, and then use http://duktape.org/api.html#duk_get_memory_functions to get the pointer back.Something like
sjs_vm_get_vm(duk_context* ctx)