shithub: scc

Download patch

ref: 0bde14aea247385ada9ad4591aa43c9b200b268b
parent: 3b91cba7aee04f37a8ba3270bd1cbd28f4198c24
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Aug 4 12:14:17 EDT 2016

[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

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