diff options
Diffstat (limited to 'LibC/assert.h')
-rw-r--r-- | LibC/assert.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LibC/assert.h b/LibC/assert.h index b56bd14d79..e0a297a12a 100644 --- a/LibC/assert.h +++ b/LibC/assert.h @@ -6,7 +6,7 @@ __BEGIN_DECLS void __assertion_failed(const char* msg, const char* file, unsigned line, const char* func); -#define assert(expr) (static_cast<bool>(expr) ? (void)0 : __assertion_failed(#expr, __FILE__, __LINE__, __PRETTY_FUNCTION__)) +#define assert(expr) ((expr) ? (void)0 : __assertion_failed(#expr, __FILE__, __LINE__, __PRETTY_FUNCTION__)) #define CRASH() do { asm volatile("ud2"); } while(0) #define ASSERT assert #define RELEASE_ASSERT assert |