commit e24d97ecad8360e6d457bbfcd4d60157bd306068
Author: Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Thu Aug 4 16:14:17 2016 +0200
Commit: Roberto E. Vargas Caballero <[email protected]>
CommitDate: Thu Aug 4 16:14:17 2016 +0200
[libc] Fix definition of assert
__assert() needs the value of the expression or it will not
be able to determine is the assert was correct or not :P
diff --git a/libc/include/z80/assert.h b/libc/include/z80/assert.h
index 339c7aa..1d9eadb 100644
--- a/libc/include/z80/assert.h
+++ b/libc/include/z80/assert.h
@@ -3,7 +3,7 @@
#define _ASSERT_H
#ifndef NDEBUG
-#define assert(exp) __assert(#exp, __FILE__, __LINE__)
+#define assert(exp) __assert(exp, #exp, __FILE__, __LINE__)
#endif
#endif