gwnavruntime/basesystem/logger.h Source File
Go to the documentation of this file.
18 LogWrapper(LogMessageId
id) : m_id(id) {}
19 void Print(
const char* fmt, ...) const KY_LOG_VAARG_ATTRIBUTE(2,3);
25 #ifndef KY_NO_LOG_OUTPUT
28 #define KY_LOG_ADD_LN(fmt, ...) (fmt "\n", __VA_ARGS__)
30 #define KY_LOG_ADD_LN(fmt, ...) (fmt "\n", ## __VA_ARGS__)
32 #define KY_LOG_SUFFIX_LN(args) KY_LOG_ADD_LN args
38 #define KY_LOG_MESSAGE(args) KY_MACRO_START Kaim::LogWrapper(Kaim::Log_Message).Print KY_LOG_SUFFIX_LN(args); KY_MACRO_END
39 #define KY_LOG_WARNING(args) KY_MACRO_START Kaim::LogWrapper(Kaim::Log_Warning).Print KY_LOG_SUFFIX(args); KY_MACRO_END
40 #define KY_LOG_ERROR(args) KY_MACRO_START Kaim::LogWrapper(Kaim::Log_Error).Print KY_LOG_SUFFIX(args); KY_MACRO_END
42 #define KY_LOG_MESSAGE_IF(condition, args) KY_MACRO_START if (condition) { KY_LOG_MESSAGE(args); } KY_MACRO_END
43 #define KY_LOG_WARNING_IF(condition, args) KY_MACRO_START if (condition) { KY_LOG_WARNING(args); } KY_MACRO_END
44 #define KY_LOG_ERROR_IF(condition, args) KY_MACRO_START if (condition) { KY_LOG_ERROR(args); } KY_MACRO_END
46 #define KY_REPORT_WEIRD_CASE(args) KY_MACRO_START { KY_LOG_ERROR(args);} KY_MACRO_END
49 #define KY_LOG_MESSAGE(args) ((void)0)
50 #define KY_LOG_WARNING(args) ((void)0)
51 #define KY_LOG_ERROR(args) ((void)0)
53 #define KY_LOG_MESSAGE_IF(condition, args) ((void)0)
54 #define KY_LOG_WARNING_IF(condition, args) ((void)0)
55 #define KY_LOG_ERROR_IF(condition, args) ((void)0)
57 #define KY_REPORT_WEIRD_CASE(args) ((void)0)
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17