summaryrefslogtreecommitdiff
path: root/wasm2c/wasm-rt-impl.h
diff options
context:
space:
mode:
authorShravan Narayan <shravanrn@gmail.com>2023-04-29 15:37:23 -0400
committerShravan Narayan <shravanrn@gmail.com>2023-05-02 14:27:21 -0400
commit5abbeaab97eb802acccf866d9c8cc021c1f7e570 (patch)
tree54380ba2ead12f36b1cf7b16aa2f68d2617fc9ef /wasm2c/wasm-rt-impl.h
parent4d9a1475a744ab78e7fbc3dc60bf7038dad6119d (diff)
downloadwabt-5abbeaab97eb802acccf866d9c8cc021c1f7e570.tar.gz
wabt-5abbeaab97eb802acccf866d9c8cc021c1f7e570.tar.bz2
wabt-5abbeaab97eb802acccf866d9c8cc021c1f7e570.zip
wasm2c: Enable exceptions and simd according to command line flags
Diffstat (limited to 'wasm2c/wasm-rt-impl.h')
-rw-r--r--wasm2c/wasm-rt-impl.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/wasm2c/wasm-rt-impl.h b/wasm2c/wasm-rt-impl.h
index 088619f4..c7d7fdbf 100644
--- a/wasm2c/wasm-rt-impl.h
+++ b/wasm2c/wasm-rt-impl.h
@@ -30,19 +30,6 @@ extern "C" {
/** A setjmp buffer used for handling traps. */
extern WASM_RT_THREAD_LOCAL wasm_rt_jmp_buf g_wasm_rt_jmp_buf;
-#if WASM_RT_INSTALL_SIGNAL_HANDLER && !defined(_WIN32)
-#define WASM_RT_LONGJMP_UNCHECKED(buf, val) siglongjmp(buf, val)
-#else
-#define WASM_RT_LONGJMP_UNCHECKED(buf, val) longjmp(buf, val)
-#endif
-
-#define WASM_RT_LONGJMP(buf, val) \
- /* Abort on failure as this may be called in the trap handler */ \
- if (!((buf).initialized)) \
- abort(); \
- (buf).initialized = false; \
- WASM_RT_LONGJMP_UNCHECKED((buf).buffer, val)
-
#if WASM_RT_USE_STACK_DEPTH_COUNT
/** Saved call stack depth that will be restored in case a trap occurs. */
extern WASM_RT_THREAD_LOCAL uint32_t wasm_rt_saved_call_stack_depth;