Include function name in cstrike ext error messages

This commit is contained in:
Asher Baker 2017-08-18 13:00:50 +01:00
parent b7b422f046
commit 902cae595b

View File

@ -38,7 +38,7 @@
void *addr; \
if (!g_pGameConf->GetMemSig(name, &addr) || !addr) \
{ \
g_pSM->LogError(myself, "Failed to locate function."); \
g_pSM->LogError(myself, "Failed to lookup %s signature.", name); \
return defaultret; \
} \
code; \
@ -47,7 +47,7 @@
#define GET_MEMSIG(name, defaultret) \
if (!g_pGameConf->GetMemSig(name, &addr) || !addr) \
{ \
g_pSM->LogError(myself, "Failed to locate function."); \
g_pSM->LogError(myself, "Failed to lookup %s signature.", name); \
return defaultret;\
}