aboutsummaryrefslogtreecommitdiff
path: root/libs/libc/inc/assert.h
diff options
context:
space:
mode:
authorMarvin Borner2021-04-27 17:37:13 +0200
committerMarvin Borner2021-04-27 17:37:13 +0200
commitb1a7c10ba575384e8f4ffb6b642783bfbcf51b32 (patch)
tree473394adf3c65da1d13060fb107da7249ebbe480 /libs/libc/inc/assert.h
parent6ab6e1d1568380f87bf0276cfac4487db553245b (diff)
Better malloc optimizations
Diffstat (limited to 'libs/libc/inc/assert.h')
-rw-r--r--libs/libc/inc/assert.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/libc/inc/assert.h b/libs/libc/inc/assert.h
index fb5a857..6b35dd3 100644
--- a/libs/libc/inc/assert.h
+++ b/libs/libc/inc/assert.h
@@ -18,9 +18,10 @@
#elif defined(USER)
#define assert(exp) \
{ \
- if (!(exp)) \
+ if (!(exp)) { \
err(1, "%s:%d: %s: Assertion '%s' failed\n", __FILE__, __LINE__, __func__, \
#exp); \
+ } \
}
#endif