mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-29 16:15:00 +00:00
feat: Enhance logging with detailed function tracing and argument conversion utilities
This commit is contained in:
@@ -29,7 +29,8 @@ std::optional<std::filesystem::path> GetUserConfigDirectory() {
|
||||
#ifdef _WIN32
|
||||
namespace {
|
||||
std::string FormatWin32Error(DWORD errorCode) {
|
||||
sdl3cpp::logging::Logger::GetInstance().TraceFunctionWithArgs(errorCode);
|
||||
using sdl3cpp::logging::ToString;
|
||||
sdl3cpp::logging::Logger::GetInstance().TraceFunctionWithArgs("FormatWin32Error", ToString(static_cast<unsigned long>(errorCode)));
|
||||
if (errorCode == ERROR_SUCCESS) {
|
||||
return "ERROR_SUCCESS";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user