File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 19
19
#define JSON_ASSERT ( condition ) assert( condition );
20
20
21
21
// The call to assert() will show the failure message in debug builds. In
22
- // release bugs we write to invalid memory in order to crash hard instead of
23
- // calling exit(), so that a debugger or crash reporter gets the chance to take
24
- // over .
25
- #define JSON_FAIL_MESSAGE ( message ) { assert (false && message); strcpy (reinterpret_cast <char *>(666 ), message); }
22
+ // release bugs we write to invalid memory in order to crash hard, so that a
23
+ // debugger or crash reporter gets the chance to take over. We still call exit()
24
+ // afterward in order to tell the compiler that this macro doesn't return .
25
+ #define JSON_FAIL_MESSAGE ( message ) { assert (false && message); strcpy (reinterpret_cast <char *>(666 ), message); exit ( 123 ); }
26
26
27
27
#endif
28
28
You can’t perform that action at this time.
0 commit comments