1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00:00

Add some debug helpers around this area

This commit is contained in:
sfan5 2024-09-12 17:18:13 +02:00
parent 6f275e2ba0
commit 58ea11c2b3
5 changed files with 37 additions and 3 deletions

View file

@ -510,6 +510,9 @@ target_link_libraries(IrrlichtMt PRIVATE
if(WIN32)
target_compile_definitions(IrrlichtMt INTERFACE _IRR_WINDOWS_API_) # used in _IRR_DEBUG_BREAK_IF definition in a public header
endif()
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
target_compile_definitions(IrrlichtMt INTERFACE _DEBUG) # same
endif()
if(APPLE OR ANDROID OR EMSCRIPTEN)
target_compile_definitions(IrrlichtMt PUBLIC IRR_MOBILE_PATHS)
endif()

View file

@ -52,7 +52,6 @@ public:
// prints out a string to the console out stdout or debug log or whatever
static void print(const c8 *message, ELOG_LEVEL ll = ELL_INFORMATION);
static void log(const c8 *message, ELOG_LEVEL ll = ELL_INFORMATION);
static void log(const wchar_t *message, ELOG_LEVEL ll = ELL_INFORMATION);
// The string ": " is added between message and hint
static void log(const c8 *message, const c8 *hint, ELOG_LEVEL ll = ELL_INFORMATION);