示例#1
0
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;
}
示例#2
0
void FunctionExecutable::clearUnlinkedCodeForRecompilationIfNotCompiling()
{
    if (isCompiling())
        return;
    m_unlinkedExecutable->clearCodeForRecompilation();
}
示例#3
0
void FunctionExecutable::clearCodeIfNotCompiling()
{
    if (isCompiling())
        return;
    clearCode();
}