Core macros used by the entire engine.
More...
#include <cassert>
#include <typeinfo>
#include <regex>
#include "LkEngine/Core/LObject/Enum.h"
Go to the source code of this file.
|
enum class | EClassFlag : uint32_t { None = LK_BIT(0)
, Abstract = LK_BIT(1)
} |
|
enum class | LkEngine::EClassType : uint64_t {
LField = LK_BIT(0)
, LEnum = LK_BIT(1)
, LStruct = LK_BIT(2)
, LClass = LK_BIT(3)
,
LObject = LK_BIT(4)
} |
|
enum class | LkEngine::ELogFormat : uint8_t { Compact = 0
, Verbose
} |
|
|
| LkEngine::LK_ENUM_CLASS (EClassFlag) |
|
| LkEngine::LK_ENUM_CLASS (EClassType) |
|
FORCEINLINE constexpr const char * | LkEngine::Core::Internal::RemovePrefix (const char *Str, const char Prefix='L') |
| Remove a single character from the start of a string.
|
|
Core macros used by the entire engine.
◆ LK_ARRAYSIZE
#define LK_ARRAYSIZE |
( |
| Array | ) |
|
Value:(static_cast<int>((sizeof(Array) / sizeof(*(Array)))))
◆ LK_BIT
◆ LK_FMT_LIB
Platform: Windows.
TODO: Platform specific implementations in separate headers rather than checking the platform here.
◆ LK_GET_FIRST_ARG
#define LK_GET_FIRST_ARG |
( |
| Arg, |
|
|
| ... ) |
◆ LK_LIKELY
◆ LK_MARK_FUNC_FOR_REMOVAL
#define LK_MARK_FUNC_FOR_REMOVAL |
( |
| ... | ) |
|
Value: LK_CORE_ASSERT(false, "[ FUNCTION IS DEPRECATED AND IS TO BE REMOVED ]\n{}" __VA_OPT__("\n\t{}"), LK_FUNCSIG __VA_OPT__(, __VA_ARGS__))
◆ LK_MARK_FUNC_NOT_IMPLEMENTED
#define LK_MARK_FUNC_NOT_IMPLEMENTED |
( |
| ... | ) |
|
Value: LK_CORE_ASSERT(false, "[ FUNCTION NOT IMPLEMENTED ]\n{}" __VA_OPT__("\n{}"), LK_FUNCSIG __VA_OPT__(, __VA_ARGS__))
◆ LK_STRINGIFY
#define LK_STRINGIFY |
( |
| x | ) |
|
◆ LK_TEXT
◆ LK_UNLIKELY
◆ LK_UNUSED
◆ RemovePrefix()
FORCEINLINE constexpr const char * LkEngine::Core::Internal::RemovePrefix |
( |
const char * | Str, |
|
|
const char | Prefix = 'L' ) |
|
constexpr |
Remove a single character from the start of a string.
- Returns
- The passed string without the prefix if the contained the prefix, else return the same string.