aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorChris Apers2004-10-08 13:34:55 +0000
committerChris Apers2004-10-08 13:34:55 +0000
commit1e13280ff478ff989a16a26f73243f9ae48dec7b (patch)
tree324f0140deb8c8c170ed023ad2f9e7ae9c2f95a2 /backends
parent3f3f186fb43ffe6f9465016275e4b27a64216108 (diff)
downloadscummvm-rg350-1e13280ff478ff989a16a26f73243f9ae48dec7b.tar.gz
scummvm-rg350-1e13280ff478ff989a16a26f73243f9ae48dec7b.tar.bz2
scummvm-rg350-1e13280ff478ff989a16a26f73243f9ae48dec7b.zip
True assert function
svn-id: r15471
Diffstat (limited to 'backends')
-rw-r--r--backends/PalmOS/Src/missing/assert.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/backends/PalmOS/Src/missing/assert.h b/backends/PalmOS/Src/missing/assert.h
index 57c0e58714..cc3d430669 100644
--- a/backends/PalmOS/Src/missing/assert.h
+++ b/backends/PalmOS/Src/missing/assert.h
@@ -20,4 +20,13 @@
*
*/
-#define assert(a) \ No newline at end of file
+#ifndef __ASSERT_H__
+#define __ASSERT_H__
+
+#ifdef _DEBUG
+#define assert(a) ErrFatalDisplayIf(!(a), "Assertion failed: " #a)
+#else
+#define assert(a)
+#endif
+
+#endif