medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit fe05840b5225dfe8ec7ff7638dfb6816d396c529
parent 7fe9337d970e46026544445600447753e9a848e4
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Wed Sep 14 15:57:45 +0100

Fix assert on Windows

Diffstat:
intrinsics.h | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/intrinsics.h b/intrinsics.h @@ -100,7 +100,14 @@ inline void mike_assert( const bool predicate, const char * const message ) { int err = errno; printf( "errno(%d): %s\n", err, strerror( err ) ); print_backtrace(); + // TODO +#if defined( __GNUC__ ) __builtin_trap(); +#elif defined( _MSC_VER ) + exit( 1 ); +#else +#error new platform +#endif } }