SHARE
TWEET

Untitled

quantumech Apr 27th, 2019 14 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Compiled with the following:
  3.  * > emcc library.c -o library.wasm -s SIDE_MODULE=1
  4. */
  5.  
  6. #include "library.h"
  7.  
  8. int getNumber()
  9. {
  10.     // Show side module using a system library that the main module does not import
  11.     printf("getNumber() is being called\n");
  12.    
  13.     // Return value to be printed by main module
  14.     return 10;
  15. }
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