internal
| 6926 | |
| 6927 | // internal |
| 6928 | asSNameSpace *asCScriptEngine::GetParentNameSpace(asSNameSpace *ns) const |
| 6929 | { |
| 6930 | if( ns == 0 ) return 0; |
| 6931 | if( ns == nameSpaces[0] ) return 0; |
| 6932 | |
| 6933 | asCString scope = ns->name; |
| 6934 | int pos = scope.FindLast("::"); |
| 6935 | if( pos >= 0 ) |
| 6936 | { |
| 6937 | scope = scope.SubString(0, pos); |
| 6938 | return FindNameSpace(scope.AddressOf()); |
| 6939 | } |
| 6940 | |
| 6941 | return nameSpaces[0]; |
| 6942 | } |
| 6943 | |
| 6944 | END_AS_NAMESPACE |
| 6945 |
no test coverage detected