diff options
author | Shravan Narayan <shravanrn@gmail.com> | 2023-12-13 18:43:11 -0600 |
---|---|---|
committer | Shravan Narayan <shravanrn@gmail.com> | 2023-12-14 23:43:20 -0600 |
commit | 80b9752d478f1a710fda7ca51379aff87c407941 (patch) | |
tree | 96cad812688edb6c2dff4a780b0d9f0fb586e8a6 /src | |
parent | 4e043bb16b6466702bc03898116d27748047e9b5 (diff) | |
download | wabt-80b9752d478f1a710fda7ca51379aff87c407941.tar.gz wabt-80b9752d478f1a710fda7ca51379aff87c407941.tar.bz2 wabt-80b9752d478f1a710fda7ca51379aff87c407941.zip |
wasm2c: Cleanup/separate code for heap and stack signal handlers
Diffstat (limited to 'src')
-rw-r--r-- | src/prebuilt/wasm2c_source_declarations.cc | 2 | ||||
-rw-r--r-- | src/template/wasm2c.declarations.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/prebuilt/wasm2c_source_declarations.cc b/src/prebuilt/wasm2c_source_declarations.cc index babb43e3..ac0629e4 100644 --- a/src/prebuilt/wasm2c_source_declarations.cc +++ b/src/prebuilt/wasm2c_source_declarations.cc @@ -43,7 +43,7 @@ R"w2c_template( #define TRAP(x) (wasm_rt_trap(WASM_RT_TRAP_##x), 0) )w2c_template" R"w2c_template( -#if WASM_RT_USE_STACK_DEPTH_COUNT +#if WASM_RT_STACK_DEPTH_COUNT )w2c_template" R"w2c_template(#define FUNC_PROLOGUE \ )w2c_template" diff --git a/src/template/wasm2c.declarations.c b/src/template/wasm2c.declarations.c index 40f07ed9..6399affe 100644 --- a/src/template/wasm2c.declarations.c +++ b/src/template/wasm2c.declarations.c @@ -22,7 +22,7 @@ #define TRAP(x) (wasm_rt_trap(WASM_RT_TRAP_##x), 0) -#if WASM_RT_USE_STACK_DEPTH_COUNT +#if WASM_RT_STACK_DEPTH_COUNT #define FUNC_PROLOGUE \ if (++wasm_rt_call_stack_depth > WASM_RT_MAX_CALL_STACK_DEPTH) \ TRAP(EXHAUSTION); |