Skip to content

Commit 8ae849a

Browse files
committed
TEMP TEMP UNREACHABLE IS ABORT
Signed-off-by: Davide Bettio <davide@uninstall.it>
1 parent 801cdb1 commit 8ae849a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libAtomVM/utils.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,10 @@ static inline __attribute__((always_inline)) func_ptr_t cast_void_to_func_ptr(vo
324324

325325
#ifdef __GNUC__
326326
#define UNREACHABLE() \
327-
__builtin_unreachable()
327+
abort()
328328
#else
329-
#define UNREACHABLE(...)
329+
#define UNREACHABLE(...) \
330+
abort()
330331
#endif
331332

332333
#if defined(__GNUC__) && !defined(__clang__)

0 commit comments

Comments
 (0)