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

Function getNamespaceList

Engine/source/console/compiledEval.cpp:150–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148namespace Con
149{
150 const char *getNamespaceList(Namespace *ns)
151 {
152 U32 size = 1;
153 Namespace * walk;
154 for (walk = ns; walk; walk = walk->mParent)
155 size += dStrlen(walk->mName) + 4;
156 char *ret = Con::getReturnBuffer(size);
157 ret[0] = 0;
158 for (walk = ns; walk; walk = walk->mParent)
159 {
160 dStrcat(ret, walk->mName, size);
161 if (walk->mParent)
162 dStrcat(ret, " -> ", size);
163 }
164 return ret;
165 }
166}
167
168static void getFieldComponent(SimObject* object, StringTableEntry field, const char* array, StringTableEntry subField, char val[], S32 currentLocalRegister)

Callers 2

execMethod · 0.85
refreshMethod · 0.85

Calls 3

getReturnBufferFunction · 0.85
dStrcatFunction · 0.85
dStrlenFunction · 0.50

Tested by 1

refreshMethod · 0.68