Files
wowdecomp/Engine/Source/Storm/Source/DebugLog.cpp
T
SatyandClaude Opus 5.5 cccfd26213 Move Storm to Engine/Source/Storm; SFile.cpp to BlizzardCore
Storm moves under Engine/Source with its inner layout unchanged. All
includes use Engine/Source/Storm/..., Storm's include guards follow the
new path, and the top-level CMakeLists adds Engine/Source/Storm.
SFile.cpp (SFile::CreateOverlapped/DestroyOverlapped) moves to
Engine/Source/BlizzardCore.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 03:33:51 +02:00

38 lines
796 B
C++

#include <cstdarg>
#include <cstdio>
#include <cstring>
#include <windows.h>
#include "Engine/Source/Storm/H/storm.h"
void DebugLog(const char* format, ...) {
char buffer[1024];
va_list args;
va_start(args, format);
vsnprintf(buffer, sizeof(buffer), format, args);
va_end(args);
OutputDebugStringA(buffer);
size_t length = strlen(buffer);
if (length == 0 || buffer[length - 1] != '\n') {
OutputDebugStringA("\n");
}
}
void DebugLog(int32_t target, const char* format, ...) {
char buffer[1024];
va_list args;
va_start(args, format);
vsnprintf(buffer, sizeof(buffer), format, args);
va_end(args);
DebugLog("%s", buffer);
}
void DebugValidate(const char* expression) {
DebugLog("Validation failed: %s", expression);
}