Download Gallery/Plugins/Developer/RiderLink/Source/RiderDebuggerSupport/Private/DebugLogger.cpp from alexlu2/uassets: direct link, hf CLI and curl.
- Browser
- Download file 996 Bytes
-
https://huggingface.co/datasets/alexlu2/uassets/resolve/main/Gallery/Plugins/Developer/RiderLink/Source/RiderDebuggerSupport/Private/DebugLogger.cpp
- Command line
-
hf download hf://datasets/alexlu2/uassets/Gallery/Plugins/Developer/RiderLink/Source/RiderDebuggerSupport/Private/DebugLogger.cpp
-
curl -L -o DebugLogger.cpp https://huggingface.co/datasets/alexlu2/uassets/resolve/main/Gallery/Plugins/Developer/RiderLink/Source/RiderDebuggerSupport/Private/DebugLogger.cpp
996 Bytes
| | |
| // Avoid including windows.h | |
| extern "C" __declspec(dllimport) void __stdcall OutputDebugStringA(const char* LpOutputString); | |
| void RiderDebuggerSupport::SendLogToDebugger( | |
| #if !JB_DEBUG_MODE && __cplusplus >= 201703L | |
| [[maybe_unused]] | |
| #endif | |
| const char* FormatStr, ...) | |
| { | |
| va_list Args; | |
| va_start(Args, FormatStr); | |
| char OutputBuffer[1024] = {LOG_DBG_PREFIX}; | |
| char* FormatBuffer = OutputBuffer + LOG_DBG_PREFIX_LENGTH; | |
| constexpr int FormatBufferSize = sizeof(OutputBuffer) - LOG_DBG_PREFIX_LENGTH; | |
| const auto Res = vsprintf_s(FormatBuffer, FormatBufferSize, FormatStr, Args); | |
| if (Res > 0) | |
| OutputDebugStringA(OutputBuffer); | |
| else | |
| OutputDebugStringA("Error in SendLogToDebugger"); | |
| va_end(Args); | |
| } |