We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 991bd33 commit c0cf612Copy full SHA for c0cf612
src/compiler-support.h
@@ -35,8 +35,9 @@
35
# include "sanitizer/common_interface_defs.h"
36
# define WASM_UNREACHABLE() do { __sanitizer_print_stack_trace(); __builtin_trap(); } while (0)
37
#else
38
+# include <assert.h>
39
# include <stdlib.h>
-# define WASM_UNREACHABLE() abort()
40
+# define WASM_UNREACHABLE() do { assert(false); abort(); } while (0)
41
#endif
42
43
#ifdef __GNUC__
0 commit comments