diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-12-21 23:50:09 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-12-26 18:21:45 -0700 |
commit | 3756c77e536a293fc735726eac0e5f0c3a8b89da (patch) | |
tree | f45a37d17a489545222e814197af74d97afced70 /libmisc/include | |
parent | d0e9e9c4a178fe396f3ba255bc440a15b107a097 (diff) |
libmisc: Check that assert.h has no deps
Diffstat (limited to 'libmisc/include')
-rw-r--r-- | libmisc/include/libmisc/assert.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmisc/include/libmisc/assert.h b/libmisc/include/libmisc/assert.h index da2ba2b..8cf0735 100644 --- a/libmisc/include/libmisc/assert.h +++ b/libmisc/include/libmisc/assert.h @@ -17,7 +17,7 @@ #endif #define assert_msg(expr, msg) __assert_msg(expr, #expr, msg) /* libmisc */ -#define assert(expr) __assert_msg(expr, #expr, NULL) /* C89, POSIX-2001 */ +#define assert(expr) __assert_msg(expr, #expr, 0) /* C89, POSIX-2001 */ #define assert_notreached(msg) do { __assert_msg(0, "notreached", msg); __builtin_unreachable(); } while (0) /* libmisc */ #define static_assert _Static_assert /* C11 */ |