SHARE
TWEET

Untitled

quantumech Apr 22nd, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Module.onRuntimeInitialized = function()
  2. {
  3.     // Get memory address of func()
  4.     var funcPtr = addFunction(func, 'v');
  5.  
  6.     // Invoke C method that calls function pointer
  7.     Module._callFuncPtr(funcPtr);
  8. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top