Eliminate DefineConsoleFunction

This commit is contained in:
Lukas Joergensen 2018-04-17 16:33:56 +02:00
parent 037d089c4d
commit 5bde18143f
55 changed files with 314 additions and 332 deletions

View file

@ -50,7 +50,7 @@ static const char *packetTypeNames[] =
//-----------------------------------------------------------------
//-----------------------------------------------------------------
//-----------------------------------------------------------------
DefineConsoleFunction( DNetSetLogging, void, (bool enabled), , "(bool enabled)"
DefineEngineFunction( DNetSetLogging, void, (bool enabled), , "(bool enabled)"
"@brief Enables logging of the connection protocols\n\n"
"When enabled a lot of network debugging information is sent to the console.\n"
"@param enabled True to enable, false to disable\n"

View file

@ -48,12 +48,12 @@
void dumpAllStrings();
};
DefineConsoleFunction( sbmDumpStats, void, (), , "()")
DefineEngineFunction( sbmDumpStats, void, (), , "()")
{
StringBufferManager::getManager().dumpStats();
}
DefineConsoleFunction( sbmDumpStrings, void, (), , "()")
DefineEngineFunction( sbmDumpStrings, void, (), , "()")
{
StringBufferManager::getManager().dumpAllStrings();
}

View file

@ -480,7 +480,7 @@ static U32 sgStringInstances;
#endif
DefineConsoleFunction( dumpStringMemStats, void, (), , "()"
DefineEngineFunction( dumpStringMemStats, void, (), , "()"
"@brief Dumps information about String memory usage\n\n"
"@ingroup Debugging\n"
"@ingroup Strings\n")