commit 313c0b9c22cb5710ac7107d8fc1120aceb1db6d6 parent 9bd58b8d4a527dd3cd8659d16fce909302f3b979 Author: Michael Savage <mikejsavage@gmail.com> Date: Mon Oct 17 20:05:07 +0300 SEGFAULT instead of exit( 1 ) on assertion failures on Windows Diffstat:
intrinsics.h | | | 2 | +- |
diff --git a/intrinsics.h b/intrinsics.h @@ -102,7 +102,7 @@ inline void mike_assert( const bool predicate, const char * message ) { #if defined( __GNUC__ ) __builtin_trap(); #elif defined( _MSC_VER ) - exit( 1 ); + *( int * ) 0 = 0; #else #error new platform #endif