diff options
author | Chris Apers | 2004-10-08 13:34:55 +0000 |
---|---|---|
committer | Chris Apers | 2004-10-08 13:34:55 +0000 |
commit | 1e13280ff478ff989a16a26f73243f9ae48dec7b (patch) | |
tree | 324f0140deb8c8c170ed023ad2f9e7ae9c2f95a2 | |
parent | 3f3f186fb43ffe6f9465016275e4b27a64216108 (diff) | |
download | scummvm-rg350-1e13280ff478ff989a16a26f73243f9ae48dec7b.tar.gz scummvm-rg350-1e13280ff478ff989a16a26f73243f9ae48dec7b.tar.bz2 scummvm-rg350-1e13280ff478ff989a16a26f73243f9ae48dec7b.zip |
True assert function
svn-id: r15471
-rw-r--r-- | backends/PalmOS/Src/missing/assert.h | 11 |
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 |