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:
parent
4159272965
commit
2c500a4f35
@ -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
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user