This commit is contained in:
Vichingo455
2025-03-23 15:26:15 +01:00
parent cacf40b6cd
commit ad8366918e
72 changed files with 10255 additions and 2 deletions

16
shared/Trace.h Normal file
View File

@@ -0,0 +1,16 @@
#pragma once
#if defined(ATLTRACE)
#define TRACE ATLTRACE
#elif defined(_DEBUG)
// Yeah, sue me lol
#define TRACE(...) { \
LPWSTR __traceMsg = (LPWSTR)LocalAlloc(LPTR, 4096 * sizeof(WCHAR)); \
wsprintf(__traceMsg, L"%hs(%d): %hs: ", __FILE__, __LINE__, __FUNCTION__); \
wsprintf(__traceMsg + wcslen(__traceMsg), __VA_ARGS__); \
MessageBox(NULL, __traceMsg, L"Debug", MB_OK); \
LocalFree(__traceMsg); \
}
#else
#define TRACE(...)
#endif