]>
git.bts.cx Git - benzene.git/blob - src/bz/debug/assert.h
1 #ifndef BZ_DEBUG_ASSERT_H
2 #define BZ_DEBUG_ASSERT_H
4 #include <bz/debug/log.h>
10 #define bzAssertMessage(test, fmt, ...) {if ((test) != true) { bzError(fmt, ##__VA_ARGS__); bzAssertExit(); } }
11 #define bzAssert(test) bzAssertMessage(test, "failed assertion \""#test"\"")
13 extern void bzAssertExit(void); // TODO: Consider moving this to generic failure handling