Include the platform in the diagnostic log header

This commit is contained in:
baldurk
2019-03-13 10:34:48 +00:00
parent 9134ccdebd
commit f1bfed1c1e
+14 -1
View File
@@ -292,7 +292,20 @@ void RenderDoc::Initialise()
RDCLOGFILE(m_LoggingFilename.c_str());
}
RDCLOG("RenderDoc v%s %s %s (%s) %s", MAJOR_MINOR_VERSION_STRING,
const char *platform =
#if ENABLED(RDOC_WIN32)
"Windows";
#elif ENABLED(RDOC_LINUX)
"Linux";
#elif ENABLED(RDOC_ANDROID)
"Android";
#elif ENABLED(RDOC_APPLE)
"macOS";
#else
"Unknown";
#endif
RDCLOG("RenderDoc v%s %s %s %s (%s) %s", MAJOR_MINOR_VERSION_STRING, platform,
sizeof(uintptr_t) == sizeof(uint64_t) ? "64-bit" : "32-bit",
ENABLED(RDOC_RELEASE) ? "Release" : "Development", GitVersionHash,
IsReplayApp() ? "loaded in replay application" : "capturing application");