aboutsummaryrefslogtreecommitdiff
path: root/include/assert.h
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-07-24 14:25:51 +0200
committermarha <marha@users.sourceforge.net>2013-07-25 08:25:18 +0200
commitde54c5b749b3eefb75d420840c889533a58aa342 (patch)
tree6502771c9dd5a0d455388734060469b18f2e4011 /include/assert.h
parent0606cba5be2dab08f0b4de540d7b278fa6273daf (diff)
downloadvcxsrv-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.h9
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
+