quantumech

Untitled

Apr 27th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment