diff options
author | marha <marha@users.sourceforge.net> | 2013-07-24 14:25:51 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2013-07-25 08:25:18 +0200 |
commit | de54c5b749b3eefb75d420840c889533a58aa342 (patch) | |
tree | 6502771c9dd5a0d455388734060469b18f2e4011 /include/assert.h | |
parent | 0606cba5be2dab08f0b4de540d7b278fa6273daf (diff) | |
download | vcxsrv-de54c5b749b3eefb75d420840c889533a58aa342.tar.gz vcxsrv-de54c5b749b3eefb75d420840c889533a58aa342.tar.bz2 vcxsrv-de54c5b749b3eefb75d420840c889533a58aa342.zip |
64-bit compilation now compiles and runs
Diffstat (limited to 'include/assert.h')
-rw-r--r-- | include/assert.h | 9 |
1 files changed, 7 insertions, 2 deletions
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 <stdio.h> +#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 + |