24 #define DARWIN_COMPILER_MSVC 25 #elif defined(__GNUC__) 26 #define DARWIN_COMPILER_GCC 27 #elif defined(__clang__) 28 #define DARWIN_COMPILER_CLANG 30 #error Unsupported compiler 34 #define DARWIN_OS_WINDOWS 35 #elif defined(__linux__) 36 #define DARWIN_OS_LINUX 37 #elif defined(__APPLE__) 38 #define DARWIN_OS_APPLE 45 [[noreturn]]
void __checkFailed(
const char* expr,
int line,
const char* source);
46 [[noreturn]]
void __checkFailed(
const char* expr,
53 #define CHECK(x, ...) \ 56 core::__checkFailed(#x, __LINE__, __FILE__, ##__VA_ARGS__); \ 59 [[noreturn]]
void __fatal(
const char* message, ...);
62 #define FATAL(msg, ...) core::__fatal("\nFATAL: " msg "\n\n", ##__VA_ARGS__) Generic utilities.
Definition: exception.h:24
Classes derived from this are not copyable or movable.
Definition: utils.h:69