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

Method createLocalEntry

Engine/source/console/consoleInternal.cpp:1225–1246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1223}
1224
1225Namespace::Entry *Namespace::createLocalEntry(StringTableEntry name)
1226{
1227 for(Entry *walk = mEntryList; walk; walk = walk->mNext)
1228 {
1229 if(walk->mFunctionName == name)
1230 {
1231 walk->clear();
1232 return walk;
1233 }
1234 }
1235
1236 Entry *ent = (Entry *) mAllocator.alloc(sizeof(Entry));
1237 constructInPlace(ent);
1238
1239 ent->mNamespace = this;
1240 ent->mFunctionName = name;
1241 ent->mNext = mEntryList;
1242 ent->mPackage = mPackage;
1243 ent->mToolOnly = false;
1244 mEntryList = ent;
1245 return ent;
1246}
1247
1248void Namespace::addFunction( StringTableEntry name, CodeBlock *cb, U32 functionOffset, const char* usage, U32 lineNumber )
1249{

Callers

nothing calls this directly

Calls 3

constructInPlaceFunction · 0.85
clearMethod · 0.45
allocMethod · 0.45

Tested by

no test coverage detected