示例#1
0
IScriptObject* CScriptSystem::CreateGlobalObject(const char* sName)
{
    SCRIPT_STACK_CHECK(m_pLS);
    CScriptObject* pObj = CreateScriptObject();

    if (!pObj->CreateGlobal(sName))
    {
        pObj->Release();
        return NULL;
    };

    return pObj;
}
示例#2
0
IScriptObject* CScriptSystem::CreateObject()
{
    SCRIPT_STACK_CHECK(m_pLS);
    CScriptObject* pObj = CreateScriptObject();

    if (!pObj->Create())
    {
        pObj->Release();
        return NULL;
    };

    return pObj;
}