コード例 #1
0
ファイル: lsLuaState.cpp プロジェクト: Bewolf2/LoomSDK
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();
}