fixed typecast error when compiling in C++ (#179)

This commit is contained in:
Renji Panicker
2020-02-25 10:03:26 +08:00
committed by GitHub
parent af4a96e2a0
commit 76eea80046
+2 -2
View File
@@ -15,8 +15,8 @@ typedef struct NativeSymbol {
void *func_ptr;
} NativeSymbol;
#define EXPORT_WASM_API(symbol) {#symbol, symbol}
#define EXPORT_WASM_API2(symbol) {#symbol, symbol##_wrapper}
#define EXPORT_WASM_API(symbol) {#symbol, (void*)symbol}
#define EXPORT_WASM_API2(symbol) {#symbol, (void*)symbol##_wrapper}
/**
* Get the exported APIs of base lib