Removed uses of LUA from LuaManager member functions.
This commit is contained in:
@@ -48,26 +48,26 @@ namespace LuaHelpers
|
|||||||
|
|
||||||
void LuaManager::SetGlobal( const RString &sName, int val )
|
void LuaManager::SetGlobal( const RString &sName, int val )
|
||||||
{
|
{
|
||||||
Lua *L = LUA->Get();
|
Lua *L = Get();
|
||||||
LuaHelpers::Push( L, val );
|
LuaHelpers::Push( L, val );
|
||||||
lua_setglobal( L, sName );
|
lua_setglobal( L, sName );
|
||||||
LUA->Release( L );
|
Release( L );
|
||||||
}
|
}
|
||||||
|
|
||||||
void LuaManager::SetGlobal( const RString &sName, const RString &val )
|
void LuaManager::SetGlobal( const RString &sName, const RString &val )
|
||||||
{
|
{
|
||||||
Lua *L = LUA->Get();
|
Lua *L = Get();
|
||||||
LuaHelpers::Push( L, val );
|
LuaHelpers::Push( L, val );
|
||||||
lua_setglobal( L, sName );
|
lua_setglobal( L, sName );
|
||||||
LUA->Release( L );
|
Release( L );
|
||||||
}
|
}
|
||||||
|
|
||||||
void LuaManager::UnsetGlobal( const RString &sName )
|
void LuaManager::UnsetGlobal( const RString &sName )
|
||||||
{
|
{
|
||||||
Lua *L = LUA->Get();
|
Lua *L = Get();
|
||||||
lua_pushnil( L );
|
lua_pushnil( L );
|
||||||
lua_setglobal( L, sName );
|
lua_setglobal( L, sName );
|
||||||
LUA->Release( L );
|
Release( L );
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace LuaHelpers
|
namespace LuaHelpers
|
||||||
@@ -312,7 +312,7 @@ void LuaManager::UnyieldLua()
|
|||||||
|
|
||||||
void LuaManager::RegisterTypes()
|
void LuaManager::RegisterTypes()
|
||||||
{
|
{
|
||||||
Lua *L = LUA->Get();
|
Lua *L = Get();
|
||||||
|
|
||||||
if( g_vRegisterActorTypes )
|
if( g_vRegisterActorTypes )
|
||||||
{
|
{
|
||||||
@@ -323,7 +323,7 @@ void LuaManager::RegisterTypes()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LUA->Release( L );
|
Release( L );
|
||||||
}
|
}
|
||||||
|
|
||||||
LuaThreadVariable::LuaThreadVariable( const RString &sName, const RString &sValue )
|
LuaThreadVariable::LuaThreadVariable( const RString &sName, const RString &sValue )
|
||||||
|
|||||||
Reference in New Issue
Block a user