Constness

This commit is contained in:
Kawe Mazidjatari 2023-10-08 15:52:16 +02:00
parent 994658c4a2
commit 86ca562fb3

View File

@ -18,17 +18,17 @@ CModule g_RadAudioSystemDll;
string g_LogSessionUUID;
string g_LogSessionDirectory;
static const char* s_AdrFmt = "| {:s}: {:42s}: {:#18x} |\n";
static const char* const s_AdrFmt = "| {:s}: {:42s}: {:#18x} |\n";
void LogFunAdr(const char* szFun, uintptr_t nAdr) // Logging function addresses.
void LogFunAdr(const char* const szFun, const uintptr_t nAdr) // Logging function addresses.
{
spdlog::debug(s_AdrFmt, "FUN", szFun, nAdr);
}
void LogVarAdr(const char* szVar, uintptr_t nAdr) // Logging variable addresses.
void LogVarAdr(const char* const szVar, const uintptr_t nAdr) // Logging variable addresses.
{
spdlog::debug(s_AdrFmt, "VAR", szVar, nAdr);
}
void LogConAdr(const char* szCon, uintptr_t nAdr) // Logging constant addresses.
void LogConAdr(const char* const szCon, const uintptr_t nAdr) // Logging constant addresses.
{
spdlog::debug(s_AdrFmt, "CON", szCon, nAdr);
}