summaryrefslogtreecommitdiff
path: root/test/assert.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/assert.h')
-rw-r--r--test/assert.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/assert.h b/test/assert.h
index 8b730b2..b9b5719 100644
--- a/test/assert.h
+++ b/test/assert.h
@@ -1,10 +1,10 @@
#include <stdbool.h>
-#define ASSERT(cond, msg) assert(cond, #cond, __FILE__, __LINE__, msg)
-#define ASSERT_STR_EQ(left, right, msg) \
- assert_streq(left, right, __FILE__, __LINE__, msg)
+#define ASSERT(cond, msg, ...) assert(cond, #cond, __FILE__, __LINE__, msg, ##__VA_ARGS__)
+#define ASSERT_STR_EQ(left, right, msg, ...) \
+ assert_streq(left, right, __FILE__, __LINE__, msg, ##__VA_ARGS__)
void assert(bool cond, const char *cond_str, const char *file, int line,
- const char *msg);
+ const char *msg, ...);
void assert_streq(const char *left, const char *right, const char *file,
- int line, const char *msg);
+ int line, const char *msg, ...);