aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-12-05 17:40:56 +0000
committermarha <marha@users.sourceforge.net>2009-12-05 17:40:56 +0000
commit5c9827c199e9ecbee2602fd61fa678484c57aad1 (patch)
treef1567ef1eb76b93dec4eda2d7a67a89ea4322231 /include
parent263c230ab177de2e870649a955ed1c9425f64f13 (diff)
parent3e1ba549192a68801232c28a9c12defb59531654 (diff)
downloadvcxsrv-5c9827c199e9ecbee2602fd61fa678484c57aad1.tar.gz
vcxsrv-5c9827c199e9ecbee2602fd61fa678484c57aad1.tar.bz2
vcxsrv-5c9827c199e9ecbee2602fd61fa678484c57aad1.zip
svn merge ^/branches/released
Diffstat (limited to 'include')
-rw-r--r--include/assert.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/assert.h b/include/assert.h
new file mode 100644
index 000000000..8004c4bad
--- /dev/null
+++ b/include/assert.h
@@ -0,0 +1,21 @@
+#ifndef __ASSERT_H__
+#define __ASSERT_H__
+
+#include <stdio.h>
+
+static __inline void __assert(int Cond)
+{
+#ifdef _DEBUG
+ if (Cond)
+ {
+ printf("assertion occured.\n");
+ __asm int 3;
+ while (1);
+ }
+#endif
+}
+
+#define assert(Cond) __assert((int)(Cond))
+
+#endif
+ \ No newline at end of file