Update export_native_api.md

This commit is contained in:
Wang Xin 2020-03-05 10:48:26 +08:00 committed by GitHub
parent eb1eb9d96d
commit a325c6d3fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,6 +64,10 @@ static NativeSymbol native_symbols[] =
}
};
// ensure the memory and runtime initialization is finsihed
// before registering the native functions
bh_memory_init_with_pool(global_heap_buf, sizeof(global_heap_buf));
wasm_runtime_init();
int n_native_symbols = sizeof(native_symbols) / sizeof(NativeSymbol);
if (!wasm_runtime_register_natives("env",