diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-05 14:10:11 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-05 14:14:10 +0200 |
commit | db4e7df7a7a523a0e79ea97983ff28fb4c3ae439 (patch) | |
tree | 7acfdb4b07ca5f5417f4575f81c4fbe3a4baeb71 /compat/assert.hpp | |
parent | cd4b9241d28507f4227380abd4e0422469ccf070 (diff) |
compat/assert: workaround clangd warning
Diffstat (limited to 'compat/assert.hpp')
-rw-r--r-- | compat/assert.hpp | 6 |
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 { \ |