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

Method classLinkTo

Engine/source/console/consoleInternal.cpp:1003–1020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1001
1002
1003bool Namespace::classLinkTo(Namespace *parent)
1004{
1005 Namespace* walk = getPackageRoot();
1006
1007 if (walk->mParent && walk->mParent != parent)
1008 {
1009 Con::errorf(ConsoleLogEntry::General, "Error: cannot change namespace parent linkage of %s from %s to %s.",
1010 walk->mName, walk->mParent->mName, parent->mName);
1011 return false;
1012 }
1013
1014 trashCache();
1015 walk->mParent = parent;
1016
1017 mRefCountToParent++;
1018
1019 return true;
1020}
1021
1022void Namespace::buildHashTable()
1023{

Callers 4

linkNamespacesMethod · 0.80
consoleObject.cppFile · 0.80
linkNamespacesFunction · 0.80
classLinkNamespacesFunction · 0.80

Calls 1

errorfFunction · 0.70

Tested by

no test coverage detected