summaryrefslogtreecommitdiff
path: root/LibC/assert.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-31 17:50:43 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-10-31 17:52:59 +0100
commit819ce91395804d4ae9ac07d0080d3cfbed4ea258 (patch)
tree872619eb657f2b7ffb6316c124005e1f4c003107 /LibC/assert.h
parent69c7a59e6f5306d1b5231bb1e80bdb9f563ac9a6 (diff)
downloadserenity-819ce91395804d4ae9ac07d0080d3cfbed4ea258.zip
Enough compatibility work to make figlet build and run!
I ran out of steam writing library routines and imported two BSD-licensed libc routines: sscanf() and getopt(). I will most likely rewrite them sooner or later. For now I just wanted to see figlet running.
Diffstat (limited to 'LibC/assert.h')
-rw-r--r--LibC/assert.h2
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