diff options
author | Marvin Borner | 2021-04-27 17:37:13 +0200 |
---|---|---|
committer | Marvin Borner | 2021-04-27 17:37:13 +0200 |
commit | b1a7c10ba575384e8f4ffb6b642783bfbcf51b32 (patch) | |
tree | 473394adf3c65da1d13060fb107da7249ebbe480 /libs/libc/inc/assert.h | |
parent | 6ab6e1d1568380f87bf0276cfac4487db553245b (diff) |
Better malloc optimizations
Diffstat (limited to 'libs/libc/inc/assert.h')
-rw-r--r-- | libs/libc/inc/assert.h | 3 |
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 |