Browse Source

Merge pull request #593 from maiself/fix-crash-cond

Fix typo in CRASH_COND leading to unexpected continuation after fail
Hugo Locurcio 4 years ago
parent
commit
b56df8f6da
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 {                                     \
 	do {                                     \
 		if (unlikely(cond)) {                \
 		if (unlikely(cond)) {                \
 			FATAL_PRINT(ERR_MSG_COND(cond)); \
 			FATAL_PRINT(ERR_MSG_COND(cond)); \
-			return;                          \
+			GENERATE_TRAP;                   \
 		}                                    \
 		}                                    \
 	} while (0)
 	} while (0)
 #endif
 #endif