Guest User

Untitled

a guest
Apr 29th, 2020
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. extern "C"
  2. {
  3. void *Zone_CreateNative();
  4. }
  5.  
  6. class Zone
  7. {
  8. public:
  9. Zone()
  10. {
  11. m_native = Zone_CreateNative();
  12. }
  13.  
  14. void *m_native;
  15. };
  16.  
  17.  
  18. int main()
  19. {
  20.  
  21. Zone z;
  22.  
  23. return 0;
  24. }
  25.  
  26.  
  27. /* ---------------- .wat extract ----------------*/
  28.  
  29. (import "env" "Zone_CreateNative" (func (;0;) (type 2)))
  30. (import "env" "emscripten_resize_heap" (func (;1;) (type 0)))
  31. (import "env" "__handle_stack_overflow" (func (;2;) (type 3)))
  32. (import "env" "memory" (memory (;0;) 256 256))
  33. (import "env" "table" (table (;0;) 1 funcref))
Advertisement
Add Comment
Please, Sign In to add comment