34#if !defined(__GNUC__) && !defined(__attribute__)
35# define __attribute__(attr)
44 const char *format, ...
52#define DO_NOTHING static_cast<void>(0)
54#define ASSERT_HOST(x) \
55 (x) ? DO_NOTHING : ASSERT_FAILED.error(#x, ABORT, "in file %s, line %d", __FILE__, __LINE__)
57#define ASSERT_HOST_MSG(x, ...) \
59 tprintf(__VA_ARGS__); \
60 ASSERT_FAILED.error(#x, ABORT, "in file %s, line %d", __FILE__, __LINE__); \
#define __attribute__(attr)
constexpr ERRCODE ASSERT_FAILED("Assert failed")
constexpr ERRCODE(const char *string)