aboutsummaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/include/assert.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/include/assert.h b/libc/include/assert.h
index fbfb2cc..68f01ab 100644
--- a/libc/include/assert.h
+++ b/libc/include/assert.h
@@ -18,7 +18,8 @@ extern void update_sp_attn_area(const char *msg);
#define assert(cond) \
do { if (!(cond)) { \
update_sp_attn_area(__FILE__ \
- ":" stringify(__LINE__)); \
+ ":" stringify(__LINE__) \
+ ":" stringify(cond)); \
assert_fail(__FILE__ \
":" stringify(__LINE__) \
":" stringify(cond)); } \