Loading...
Searching...
No Matches
12#if defined(LK_ENGINE_MSVC) || defined(LK_ENGINE_GCC) || defined(LK_ENGINE_CLANG)
13# define LK_VARIADIC_ARGS 0
14# define LK_ENABLE_ASSERTS 1
15# define LK_ENABLE_VERIFY 1
23# define LK_CORE_ASSERT_MESSAGE_INTERNAL(...) ::LkEngine::LLog::PrintAssertMessage(::LkEngine::ELoggerType::Core, "Assertion Failed", ##__VA_ARGS__)
24# define LK_ASSERT_MESSAGE_INTERNAL(...) ::LkEngine::LLog::PrintAssertMessage(::LkEngine::ELoggerType::Client, "Assertion Failed", ##__VA_ARGS__)
26# define LK_CORE_ASSERT_MESSAGE_INTERNAL(...) ::LkEngine::LLog::PrintAssertMessage(::LkEngine::ELoggerType::Core, "Assertion Failed" __VA_OPT__(, ) __VA_ARGS__)
27# define LK_ASSERT_MESSAGE_INTERNAL(...) ::LkEngine::LLog::PrintAssertMessage(::LkEngine::ELoggerType::Client, "Assertion Failed" __VA_OPT__(, ) __VA_ARGS__)
29# define LK_CORE_ASSERT(Condition, ...) \
33 if constexpr (sizeof(#__VA_ARGS__) > 1) \
35 LK_CORE_ASSERT_MESSAGE_INTERNAL(__VA_ARGS__); \
39 LK_CORE_ASSERT_MESSAGE_INTERNAL("{}", LK_FUNCSIG); \
44# define LK_ASSERT(Condition, ...) \
48 if constexpr (sizeof(#__VA_ARGS__) > 1) \
50 LK_ASSERT_MESSAGE_INTERNAL(__VA_ARGS__); \
54 LK_ASSERT_MESSAGE_INTERNAL("{}", LK_FUNCSIG); \
60# define LK_CORE_ASSERT(Condition, ...) static_cast<void>(0)
61# define LK_ASSERT(Condition, ...) static_cast<void>(0)
69# define LK_CORE_VERIFY_MESSAGE_INTERNAL(...) ::LkEngine::LLog::PrintAssertMessage(::LkEngine::ELoggerType::Core, "Verify Failed", ##__VA_ARGS__)
70# define LK_VERIFY_MESSAGE_INTERNAL(...) ::LkEngine::LLog::PrintAssertMessage(::LkEngine::ELoggerType::Client, "Verify Failed", ##__VA_ARGS__)
72# define LK_CORE_VERIFY_MESSAGE_INTERNAL(...) ::LkEngine::LLog::PrintAssertMessage(::LkEngine::ELoggerType::Core, "Verify Failed" __VA_OPT__(, ) __VA_ARGS__)
73# define LK_VERIFY_MESSAGE_INTERNAL(...) ::LkEngine::LLog::PrintAssertMessage(::LkEngine::ELoggerType::Client, "Verify Failed" __VA_OPT__(, ) __VA_ARGS__)
75# define LK_CORE_VERIFY(Condition, ...) \
79 if constexpr (sizeof(#__VA_ARGS__) > 1) \
81 LK_CORE_VERIFY_MESSAGE_INTERNAL(__VA_ARGS__); \
85 LK_CORE_VERIFY_MESSAGE_INTERNAL("{}", LK_FUNCSIG); \
90# define LK_VERIFY(Condition, ...) \
94 if constexpr (sizeof(#__VA_ARGS__) > 1) \
96 LK_VERIFY_MESSAGE_INTERNAL(__VA_ARGS__); \
100 LK_VERIFY_MESSAGE_INTERNAL("{}", LK_FUNCSIG); \
106# define LK_CORE_VERIFY(Condition, ...)
107# define LK_VERIFY(Condition, ...)