Assembly *LSLuaState::loadAssemblyJSON(const utString& json) { beginAssemblyLoad(); Assembly *assembly = Assembly::loadFromString(this, json); utArray<Type *> types; assembly->getTypes(types); cacheAssemblyTypes(assembly, types); if (!isCompiling()) { finalizeAssemblyLoad(assembly, types); } endAssemblyLoad(); return assembly; }
void FunctionExecutable::clearUnlinkedCodeForRecompilationIfNotCompiling() { if (isCompiling()) return; m_unlinkedExecutable->clearCodeForRecompilation(); }
void FunctionExecutable::clearCodeIfNotCompiling() { if (isCompiling()) return; clearCode(); }