Browse Source

Fix typo in CRASH_COND leading to unexpected continuation after fail

Mai Lavelle 4 years ago
parent
commit
2f534ddd88
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/core/Defs.hpp

+ 1 - 1
include/core/Defs.hpp

@@ -208,7 +208,7 @@ typedef float real_t;
 	do {                                     \
 		if (unlikely(cond)) {                \
 			FATAL_PRINT(ERR_MSG_COND(cond)); \
-			return;                          \
+			GENERATE_TRAP;                   \
 		}                                    \
 	} while (0)
 #endif