summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--compat/assert.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/compat/assert.hpp b/compat/assert.hpp
index c406009a..8cbb55be 100644
--- a/compat/assert.hpp
+++ b/compat/assert.hpp
@@ -1,4 +1,5 @@
#pragma once
+#include <cstdlib>
#include <cstdio>
#include <type_traits>
@@ -26,10 +27,7 @@
#define FM_KILL_PRINTF_WARN_2()
#endif
-#define fm_EMIT_ABORT() \
- *(volatile int*)nullptr = 0; \
- for (;;) \
- ;
+#define fm_EMIT_ABORT() ::std::abort();
#define fm_EMIT_DEBUG2(pfx, ...) \
do { \