MCPcopy Create free account
hub / github.com/anjo76/angelscript / FindNameSpace

Method FindNameSpace

sdk/angelscript/source/as_scriptengine.cpp:1190–1198  ·  view source on GitHub ↗

internal

Source from the content-addressed store, hash-verified

1188
1189// internal
1190asSNameSpace *asCScriptEngine::FindNameSpace(const char *name) const
1191{
1192 // TODO: optimize: Improve linear search
1193 for( asUINT n = 0; n < nameSpaces.GetLength(); n++ )
1194 if( nameSpaces[n]->name == name )
1195 return nameSpaces[n];
1196
1197 return 0;
1198}
1199
1200// interface
1201const char *asCScriptEngine::GetDefaultNamespace() const

Callers 7

CompileStatementBlockMethod · 0.80
SymbolLookupMethod · 0.80
CompileFunctionCallMethod · 0.80
DetermineNameSpaceMethod · 0.80
GetNameSpaceFromNodeMethod · 0.80
GetNameSpaceByStringMethod · 0.80

Calls 1

GetLengthMethod · 0.45

Tested by

no test coverage detected