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

Method AddScriptSection

sdk/angelscript/source/as_module.cpp:229–247  ·  view source on GitHub ↗

interface

Source from the content-addressed store, hash-verified

227
228// interface
229int asCModule::AddScriptSection(const char *in_name, const char *in_code, size_t in_codeLength, int in_lineOffset)
230{
231#ifdef AS_NO_COMPILER
232 UNUSED_VAR(in_name);
233 UNUSED_VAR(in_code);
234 UNUSED_VAR(in_codeLength);
235 UNUSED_VAR(in_lineOffset);
236 return asNOT_SUPPORTED;
237#else
238 if( !m_builder )
239 {
240 m_builder = asNEW(asCBuilder)(m_engine, this);
241 if( m_builder == 0 )
242 return asOUT_OF_MEMORY;
243 }
244
245 return m_builder->AddCode(in_name, in_code, (int)in_codeLength, in_lineOffset, (int)m_engine->GetScriptSectionNameIndex(in_name ? in_name : ""), m_engine->ep.copyScriptSections);
246#endif
247}
248
249// internal
250void asCModule::JITCompile()

Callers 15

CompileScriptFunction · 0.80
CompileScriptFunction · 0.80
CompileScriptFunction · 0.80
CompileScriptFunction · 0.80
ProcessScriptSectionMethod · 0.80
TestFunction · 0.80
TestMultipleInheritance2Function · 0.80
TestFunction · 0.80
TestFunction · 0.80
test_compiler.cppFile · 0.80
Test3Function · 0.80
Test4Function · 0.80

Calls 2

AddCodeMethod · 0.45

Tested by 15

TestFunction · 0.64
TestMultipleInheritance2Function · 0.64
TestFunction · 0.64
TestFunction · 0.64
Test3Function · 0.64
Test4Function · 0.64
Test5Function · 0.64
Test6Function · 0.64
Test7Function · 0.64
Test8Function · 0.64
Test9Function · 0.64
TestRetRefFunction · 0.64