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

Method SetDefaultNamespace

sdk/angelscript/source/as_module.cpp:215–226  ·  view source on GitHub ↗

interface

Source from the content-addressed store, hash-verified

213
214// interface
215int asCModule::SetDefaultNamespace(const char *nameSpace)
216{
217 asCArray<asCString> nsStrings;
218 int r = m_engine->ParseNamespace(nameSpace, nsStrings);
219 if (r < 0)
220 return r;
221
222 for (asUINT n = 0; n < nsStrings.GetLength(); n++)
223 m_defaultNamespace = m_engine->AddNameSpace(nsStrings[n].AddressOf());
224
225 return 0;
226}
227
228// interface
229int asCModule::AddScriptSection(const char *in_name, const char *in_code, size_t in_codeLength, int in_lineOffset)

Callers 15

WriteConfigToStreamFunction · 0.45
WriteMethod · 0.45
ConfigEngineFromStreamFunction · 0.45
BuildMethod · 0.45
TestFunction · 0.45
TestGlobalVarFunction · 0.45
TestFunction · 0.45
TestEnumFunction · 0.45
TestFunction · 0.45
test_array.cppFile · 0.45
TestFunction · 0.45

Calls 4

AddNameSpaceMethod · 0.80
ParseNamespaceMethod · 0.45
GetLengthMethod · 0.45
AddressOfMethod · 0.45

Tested by 8

TestFunction · 0.36
TestGlobalVarFunction · 0.36
TestFunction · 0.36
TestEnumFunction · 0.36
TestFunction · 0.36
TestFunction · 0.36
TestFunction · 0.36
TestFunction · 0.36