mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-19 19:35:26 +00:00
Replaced a ton of ConsoleMethods with the DefineConsoleMethod Macro.
This commit is contained in:
parent
378a933894
commit
acb192e2a5
133 changed files with 1716 additions and 2087 deletions
|
|
@ -42,6 +42,7 @@ namespace KeyCmp
|
|||
#include "core/util/tVector.h"
|
||||
#include "core/dataChunker.h"
|
||||
#include "console/console.h"
|
||||
#include "console/engineAPI.h"
|
||||
|
||||
#include "math/mMathFn.h"
|
||||
|
||||
|
|
@ -476,15 +477,18 @@ static U32 sgStringMemBytes;
|
|||
/// Tracks the number of Strings which are currently instantiated.
|
||||
static U32 sgStringInstances;
|
||||
|
||||
ConsoleFunction( dumpStringMemStats, void, 1, 1, "()"
|
||||
|
||||
|
||||
#endif
|
||||
DefineConsoleFunction( dumpStringMemStats, void, (), , "()"
|
||||
"@brief Dumps information about String memory usage\n\n"
|
||||
"@ingroup Debugging\n"
|
||||
"@ingroup Strings\n")
|
||||
{
|
||||
#ifdef TORQUE_DEBUG
|
||||
Con::printf( "String Data: %i instances, %i bytes", sgStringInstances, sgStringMemBytes );
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue