Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extern "C"
- {
- void *Zone_CreateNative();
- }
- class Zone
- {
- public:
- Zone()
- {
- m_native = Zone_CreateNative();
- }
- void *m_native;
- };
- int main()
- {
- Zone z;
- return 0;
- }
- /* ---------------- .wat extract ----------------*/
- (import "env" "Zone_CreateNative" (func (;0;) (type 2)))
- (import "env" "emscripten_resize_heap" (func (;1;) (type 0)))
- (import "env" "__handle_stack_overflow" (func (;2;) (type 3)))
- (import "env" "memory" (memory (;0;) 256 256))
- (import "env" "table" (table (;0;) 1 funcref))
Advertisement
Add Comment
Please, Sign In to add comment