Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Module.onRuntimeInitialized = function()
- {
- // Get memory address of func()
- var funcPtr = addFunction(func, 'v');
- // Invoke C method that calls function pointer
- Module._callFuncPtr(funcPtr);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement