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

Method classLinkTo

Engine/source/console/consoleInternal.cpp:1021–1038  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1019
1020
1021bool Namespace::classLinkTo(Namespace *parent)
1022{
1023 Namespace* walk = getPackageRoot();
1024
1025 if(walk->mParent && walk->mParent != parent)
1026 {
1027 Con::errorf(ConsoleLogEntry::General, "Error: cannot change namespace parent linkage of %s from %s to %s.",
1028 walk->mName, walk->mParent->mName, parent->mName);
1029 return false;
1030 }
1031
1032 trashCache();
1033 walk->mParent = parent;
1034
1035 mRefCountToParent++;
1036
1037 return true;
1038}
1039
1040void Namespace::buildHashTable()
1041{

Callers 4

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

Calls 1

errorfFunction · 0.85

Tested by

no test coverage detected