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

This commit is contained in:
Renji Panicker 2020-02-25 07:33:26 +05:30 committed by GitHub
parent af4a96e2a0
commit 76eea80046
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,8 +15,8 @@ typedef struct NativeSymbol {
void *func_ptr; void *func_ptr;
} NativeSymbol; } NativeSymbol;
#define EXPORT_WASM_API(symbol) {#symbol, symbol} #define EXPORT_WASM_API(symbol) {#symbol, (void*)symbol}
#define EXPORT_WASM_API2(symbol) {#symbol, symbol##_wrapper} #define EXPORT_WASM_API2(symbol) {#symbol, (void*)symbol##_wrapper}
/** /**
* Get the exported APIs of base lib * Get the exported APIs of base lib