interface
| 213 | |
| 214 | // interface |
| 215 | int 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 |
| 229 | int asCModule::AddScriptSection(const char *in_name, const char *in_code, size_t in_codeLength, int in_lineOffset) |