mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-03-12 00:45:28 +00:00
Update export_native_api.md
This commit is contained in:
parent
eb1eb9d96d
commit
a325c6d3fe
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user