| 1019 | |
| 1020 | |
| 1021 | bool 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 | |
| 1040 | void Namespace::buildHashTable() |
| 1041 | { |
no test coverage detected