commit e24d97ecad8360e6d457bbfcd4d60157bd306068
parent b2e2403705ee71f141db8b9a4bac947ce3116f1d
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Thu, 4 Aug 2016 16:14:17 +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
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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