mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-01 23:41:03 +00:00
test(runtime-c-api) Fix compilation errors in test-exports.c
.
This commit is contained in:
parent
725aff6fee
commit
1dfae80c65
@ -31,7 +31,7 @@ int main()
|
|||||||
|
|
||||||
wasmer_import_export_kind kind = wasmer_export_kind(export);
|
wasmer_import_export_kind kind = wasmer_export_kind(export);
|
||||||
assert(kind == WASM_FUNCTION);
|
assert(kind == WASM_FUNCTION);
|
||||||
wasmer_export_func_t *func = wasmer_export_to_func(export);
|
const wasmer_export_func_t *func = wasmer_export_to_func(export);
|
||||||
|
|
||||||
wasmer_byte_array name_bytes = wasmer_export_name(export);
|
wasmer_byte_array name_bytes = wasmer_export_name(export);
|
||||||
assert(name_bytes.bytes_len == 3);
|
assert(name_bytes.bytes_len == 3);
|
||||||
@ -83,4 +83,4 @@ int main()
|
|||||||
printf("Destroy exports\n");
|
printf("Destroy exports\n");
|
||||||
wasmer_exports_destroy(exports);
|
wasmer_exports_destroy(exports);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user