Go to the documentation of this file. 22 #include <util/misc/Log.h> 37 #include "misc/Exception.h" 42 #define UTIL_FUNC __PRETTY_FUNCTION__ 49 #define UTIL_THROW(msg) throw Exception(UTIL_FUNC, msg, __FILE__, __LINE__) 51 #define UTIL_THROW(msg) { \ 52 Exception e(UTIL_FUNC, msg, __FILE__, __LINE__); \ 57 #define UTIL_THROW(msg) throw Exception(msg, __FILE__, __LINE__) 59 #define UTIL_THROW(msg) { \ 60 Exception e(msg, __FILE__, __LINE__); \ 68 #define UTIL_CHECK(condition) \ 69 if (!(condition)) { UTIL_THROW("Failed assertion: " #condition); } 75 #define UTIL_ASSERT(condition) {} 77 #define UTIL_ASSERT(condition) \ 78 if (!(condition)) { UTIL_THROW("Failed assertion: " #condition); }