Extra debugging log functions.

This commit is contained in:
redpolline 2024-11-15 13:01:52 -05:00
parent 8029c41c04
commit 2164ff292c
2 changed files with 6 additions and 1 deletions

View file

@ -1401,7 +1401,7 @@ public:
}
stop_detection_cv.notify_all();
SPDLOG_TRACE("Renderer detection done {}.", (void*)renderer_hook);
SPDLOG_TRACE("Renderer detection done %p.", (void*)renderer_hook);
return renderer_hook;
});

View file

@ -38,6 +38,8 @@
#include <spdlog/spdlog.h>
#endif
#define PRINT_DEBUG_NO_LINENUM(a, ...) do {FILE *t = fopen("STEAM_LOG.txt", "a"); fprintf(t, a, __VA_ARGS__); fclose(t);} while (0)
#ifndef SPDLOG_TRACE
#define SPDLOG_TRACE(x, ...) PRINT_DEBUG(x "\n", __VA_ARGS__)
#endif
@ -47,6 +49,9 @@
#ifndef SPDLOG_INFO
#define SPDLOG_INFO(x, ...) PRINT_DEBUG(x "\n", __VA_ARGS__)
#endif
#ifndef SPDLOG_INFO_NO_NEWLINE
#define SPDLOG_INFO_NO_NEWLINE(x, ...) PRINT_DEBUG_NO_LINENUM(x, __VA_ARGS__)
#endif
#ifndef SPDLOG_WARN
#define SPDLOG_WARN(x, ...) PRINT_DEBUG(x "\n", __VA_ARGS__)
#endif