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

Function addConstant

Engine/source/console/console.cpp:1037–1044  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1035}
1036
1037void addConstant( const char *name,
1038 S32 type,
1039 const void *dptr,
1040 const char* usage )
1041{
1042 Dictionary::Entry* entry = gEvalState.globalVars.addVariable( name, type, const_cast< void* >( dptr ), usage );
1043 entry->mIsConstant = true;
1044}
1045
1046bool removeVariable(const char *name)
1047{

Callers 4

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

Calls 1

addVariableMethod · 0.80

Tested by

no test coverage detected