From de54c5b749b3eefb75d420840c889533a58aa342 Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 24 Jul 2013 14:25:51 +0200 Subject: 64-bit compilation now compiles and runs --- include/assert.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/assert.h b/include/assert.h index c36679f8f..ceb71667a 100644 --- a/include/assert.h +++ b/include/assert.h @@ -3,13 +3,18 @@ #include +#ifdef __cplusplus +extern "C" +#endif +__declspec(dllimport) void __stdcall DebugBreak(void); + static __inline void __assert(int Cond) { #ifdef _DEBUG if (!Cond) { printf("assertion occured.\n"); - __asm int 3; + DebugBreak(); while (1); } #endif @@ -18,4 +23,4 @@ static __inline void __assert(int Cond) #define assert(Cond) __assert((int)(Cond)) #endif - \ No newline at end of file + -- cgit v1.2.3