mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator
synced 2025-05-23 21:57:40 +08:00
Extra debugging log functions.
This commit is contained in:
parent
8029c41c04
commit
2164ff292c
@ -1401,7 +1401,7 @@ public:
|
|||||||
}
|
}
|
||||||
stop_detection_cv.notify_all();
|
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;
|
return renderer_hook;
|
||||||
});
|
});
|
||||||
|
@ -38,6 +38,8 @@
|
|||||||
#include <spdlog/spdlog.h>
|
#include <spdlog/spdlog.h>
|
||||||
#endif
|
#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
|
#ifndef SPDLOG_TRACE
|
||||||
#define SPDLOG_TRACE(x, ...) PRINT_DEBUG(x "\n", __VA_ARGS__)
|
#define SPDLOG_TRACE(x, ...) PRINT_DEBUG(x "\n", __VA_ARGS__)
|
||||||
#endif
|
#endif
|
||||||
@ -47,6 +49,9 @@
|
|||||||
#ifndef SPDLOG_INFO
|
#ifndef SPDLOG_INFO
|
||||||
#define SPDLOG_INFO(x, ...) PRINT_DEBUG(x "\n", __VA_ARGS__)
|
#define SPDLOG_INFO(x, ...) PRINT_DEBUG(x "\n", __VA_ARGS__)
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef SPDLOG_INFO_NO_NEWLINE
|
||||||
|
#define SPDLOG_INFO_NO_NEWLINE(x, ...) PRINT_DEBUG_NO_LINENUM(x, __VA_ARGS__)
|
||||||
|
#endif
|
||||||
#ifndef SPDLOG_WARN
|
#ifndef SPDLOG_WARN
|
||||||
#define SPDLOG_WARN(x, ...) PRINT_DEBUG(x "\n", __VA_ARGS__)
|
#define SPDLOG_WARN(x, ...) PRINT_DEBUG(x "\n", __VA_ARGS__)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user