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

Method Compile

sdk/tests/test_feature/source/test_compiler.cpp:2000–2011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1998 delete reinterpret_cast<int*>(func);
1999 }
2000 void Compile(asIScriptEngine* engine)
2001 {
2002 for (int n = 0; n <= engine->GetLastFunctionId(); n++)
2003 {
2004 asIScriptFunction* scriptFunc = engine->GetFunctionById(n);
2005 if (scriptFunc && scriptFunc->GetFuncType() == asFUNC_SCRIPT)
2006 {
2007 scriptFunc->SetJITFunction(reinterpret_cast<asJITFunction>(new int[1]));
2008 compileCount++;
2009 }
2010 }
2011 }
2012 int invokeCount;
2013 int compileCount;
2014 } jit;

Callers 1

test_compiler.cppFile · 0.80

Calls 4

GetLastFunctionIdMethod · 0.80
GetFunctionByIdMethod · 0.80
GetFuncTypeMethod · 0.80
SetJITFunctionMethod · 0.80

Tested by

no test coverage detected