MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / prependDollar

Function prependDollar

Engine/source/console/console.cpp:90–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88CON_DECLARE_PARSER(CMD);
89
90static const char * prependDollar ( const char * name )
91{
92 if(name[0] != '$')
93 {
94 S32 len = dStrlen(name);
95 AssertFatal(len < sizeof(scratchBuffer)-2, "CONSOLE: name too long");
96 scratchBuffer[0] = '$';
97 dMemcpy(scratchBuffer + 1, name, len + 1);
98 name = scratchBuffer;
99 }
100 return name;
101}
102
103static const char * prependPercent ( const char * name )
104{

Callers 8

getVariableEntryFunction · 0.85
addVariableEntryFunction · 0.85
getAddVariableEntryFunction · 0.85
setVariableFunction · 0.85
setBoolVariableFunction · 0.85
setIntVariableFunction · 0.85
setFloatVariableFunction · 0.85
removeVariableFunction · 0.85

Calls 2

dStrlenFunction · 0.50
dMemcpyFunction · 0.50

Tested by

no test coverage detected