aboutsummaryrefslogtreecommitdiff
path: root/include/apos/assert.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-05-28 20:01:58 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-05-28 20:01:58 +0300
commit013a27aec9370221e8afae188a8ed08ed2d406b0 (patch)
treeb2bec6ae390b944f86607f34fb10dc0b438191bd /include/apos/assert.h
parent8911a377da22e5a8ad5ca2a0443fbd935f572991 (diff)
downloadkmi-013a27aec9370221e8afae188a8ed08ed2d406b0.tar.gz
kmi-013a27aec9370221e8afae188a8ed08ed2d406b0.zip
continue documenting source
Diffstat (limited to 'include/apos/assert.h')
-rw-r--r--include/apos/assert.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/apos/assert.h b/include/apos/assert.h
index 429134e..3255481 100644
--- a/include/apos/assert.h
+++ b/include/apos/assert.h
@@ -23,8 +23,7 @@
#define catastrophic_assert(x) \
do { \
if (unlikely(!(x))) { \
- error("catastrophic assertion failed: %s\n", \
- QUOTE(x)); \
+ error("catastrophic assertion failed: " QUOTE(x) "\n"); \
while (1) { \
} \
} \
@@ -33,7 +32,7 @@
#define hard_assert(x, r) \
{ \
if (unlikely(!(x))) { \
- warn("hard assertion failed: %s\n", QUOTE(x)); \
+ warn("hard assertion failed: " QUOTE(x) "\n"); \
return r; \
} \
}
@@ -41,7 +40,7 @@
#define soft_assert(x) \
do { \
if (unlikely(!(x))) { \
- info("soft assertion failed: %s\n", QUOTE(x)); \
+ info("soft assertion failed: " QUOTE(x) "\n"); \
} \
} while (0);
#else