diff options
-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 |