 |
You.i Engine
|
|
Go to the documentation of this file. 14 #define YI_ERROR_NONE 0 17 #define YI_ERROR_NOTSUPPORT_BITDEPTH -10 18 #define YI_ERROR_NOTSUPPORT_SCREENACCESS -20 19 #define YI_ERROR_NOTSUPPORT_INPUTACCESS -30 20 #define YI_ERROR_DISPLAY_BUFFER_CREATION -40 22 #if !defined(YI_DEBUG) || defined(DOXY) 37 #define YI_ASSERT(condition, tag, msg, ...) \ 38 YI_REMOVE_CONSTANT_CONDITION(YI_UNUSED(sizeof(condition)); YI_UNUSED(tag);) 39 #elif defined(__clang_analyzer__) 40 #define YI_ASSERT(condition, tag, msg, ...) \ 45 YI_LOGE(tag, "%s: " msg, "Assertion failed", ##__VA_ARGS__); \ 48 #elif defined(YI_WIN32) 49 #define YI_ASSERT(condition, tag, msg, ...) \ 50 __pragma(warning(push)) \ 51 __pragma(warning(disable:4127)) \ 56 YI_LOGF(tag, "%s: " msg, "Assertion failed", ##__VA_ARGS__); \ 60 __pragma(warning(pop)) 62 #define YI_ASSERT(condition, tag, msg, ...) \ 67 YI_LOGF(tag, "Assertion failed: " msg, ##__VA_ARGS__); \ 75 #endif //# _YI_ERROR_H_