mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-09-06 18:01:08 +00:00
feat: use C linkage in aot_comp_option.h for C++ embeding (#4106)
Co-authored-by: xiangjia.xj <xiangjia.xj@alibaba-inc.com>
This commit is contained in:
parent
851a26dbba
commit
1252f723c2
|
@ -8,6 +8,10 @@
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
/* Enables or disables bounds checks for stack frames. When enabled, the AOT
|
/* Enables or disables bounds checks for stack frames. When enabled, the AOT
|
||||||
* compiler generates code to check if the stack pointer is within the
|
* compiler generates code to check if the stack pointer is within the
|
||||||
|
@ -88,4 +92,8 @@ typedef struct AOTCompOption {
|
||||||
const char *builtin_intrinsics;
|
const char *builtin_intrinsics;
|
||||||
} AOTCompOption, *aot_comp_option_t;
|
} AOTCompOption, *aot_comp_option_t;
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* end of __AOT_COMP_OPTION_H__ */
|
Loading…
Reference in New Issue
Block a user