1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00

Update traceback in plugin command.

Use hex output for identifier. Avoid unused parameters warning when traceback is disabled.
This commit is contained in:
Sandu Liviu Catalin 2019-06-02 18:15:04 +03:00
parent 4159272965
commit 2c500a4f35

View File

@ -233,9 +233,17 @@ void Core::EmitServerFrame(Float32 elapsed_time)
}
// ------------------------------------------------------------------------------------------------
void Core::EmitPluginCommand(Uint32 /*command_identifier*/, CCStr /*message*/)
void Core::EmitPluginCommand(Uint32 command_identifier, CCStr message)
{
#if defined(_DEBUG) || defined(SQMOD_ENABLE_SV_EV_TRACEBACK)
SQMOD_CO_EV_TRACEBACK("[TRACE<] Core::PluginCommand(0x%08x, %s)", command_identifier, message)
// Ignored for now...
SQMOD_CO_EV_TRACEBACK("[TRACE>] Core::PluginCommand")
#else
// avoid unused parameter warnings!
(void)command_identifier;
(void)message;
#endif
}
// ------------------------------------------------------------------------------------------------