mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-31 12:49:28 +00:00
Update c-api examples to Context API
This commit is contained in:
@ -20,6 +20,8 @@ int main(int argc, const char* argv[]) {
|
||||
printf("Creating the store...\n");
|
||||
wasm_engine_t* engine = wasm_engine_new();
|
||||
wasm_store_t* store = wasm_store_new(engine);
|
||||
wasm_context_t* ctx = wasm_context_new(store, 0);
|
||||
wasm_store_context_set(store, ctx);
|
||||
|
||||
printf("Compiling module...\n");
|
||||
wasm_module_t* module = wasm_module_new(store, &wasm_bytes);
|
||||
|
Reference in New Issue
Block a user