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

Function addConstant

Engine/source/console/console.cpp:1089–1096  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1087}
1088
1089void addConstant( const char *name,
1090 S32 type,
1091 const void *dptr,
1092 const char* usage )
1093{
1094 Dictionary::Entry* entry = gEvalState.globalVars.addVariable( name, type, const_cast< void* >( dptr ), usage );
1095 entry->mIsConstant = true;
1096}
1097
1098bool removeVariable(const char *name)
1099{

Callers 4

AFTER_MODULE_INITFunction · 0.85
SFXSystemMethod · 0.85
AFTER_MODULE_INITFunction · 0.85
AFTER_MODULE_INITFunction · 0.85

Calls 1

addVariableMethod · 0.45

Tested by

no test coverage detected