| 1001 | |
| 1002 | |
| 1003 | bool 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 | |
| 1022 | void Namespace::buildHashTable() |
| 1023 | { |
no test coverage detected