diff options
Diffstat (limited to 'src/cru_debug.cpp')
-rw-r--r-- | src/cru_debug.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cru_debug.cpp b/src/cru_debug.cpp index 9c61d052..81945227 100644 --- a/src/cru_debug.cpp +++ b/src/cru_debug.cpp @@ -1,11 +1,11 @@ #include "cru_debug.hpp" -#include "system_headers.hpp" +#include <Windows.h> -namespace cru::debug -{ - void DebugMessage(const StringView& message) - { - ::OutputDebugStringW(message.data()); - } +namespace cru::debug { +#ifdef CRU_DEBUG +void DebugMessage(const StringView& message) { + ::OutputDebugStringW(message.data()); } +#endif +} // namespace cru::debug |