remove unnecessary
This commit is contained in:
@@ -57,25 +57,25 @@ const char *ChunkReaderString( lua_State *L, void *ptr, size_t *size )
|
|||||||
void LuaManager::SetGlobal( const CString &sName, int val )
|
void LuaManager::SetGlobal( const CString &sName, int val )
|
||||||
{
|
{
|
||||||
LuaHelpers::PushStack( val, LUA->L );
|
LuaHelpers::PushStack( val, LUA->L );
|
||||||
SetGlobal( sName );
|
lua_setglobal( L, sName );
|
||||||
}
|
}
|
||||||
|
|
||||||
void LuaManager::SetGlobal( const CString &sName, bool val )
|
void LuaManager::SetGlobal( const CString &sName, bool val )
|
||||||
{
|
{
|
||||||
LuaHelpers::PushStack( val, LUA->L );
|
LuaHelpers::PushStack( val, LUA->L );
|
||||||
SetGlobal( sName );
|
lua_setglobal( L, sName );
|
||||||
}
|
}
|
||||||
|
|
||||||
void LuaManager::SetGlobal( const CString &sName, const CString &val )
|
void LuaManager::SetGlobal( const CString &sName, const CString &val )
|
||||||
{
|
{
|
||||||
LuaHelpers::PushStack( val, LUA->L );
|
LuaHelpers::PushStack( val, LUA->L );
|
||||||
SetGlobal( sName );
|
lua_setglobal( L, sName );
|
||||||
}
|
}
|
||||||
|
|
||||||
void LuaManager::UnsetGlobal( const CString &sName )
|
void LuaManager::UnsetGlobal( const CString &sName )
|
||||||
{
|
{
|
||||||
lua_pushnil( L );
|
lua_pushnil( L );
|
||||||
SetGlobal( sName );
|
lua_setglobal( L, sName );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -119,11 +119,6 @@ void LuaHelpers::ReadArrayFromTableB( Lua *L, vector<bool> &aOut )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LuaManager::SetGlobal( const CString &sName )
|
|
||||||
{
|
|
||||||
lua_setglobal( L, sName );
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static int LuaPanic( lua_State *L )
|
static int LuaPanic( lua_State *L )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -85,8 +85,6 @@ public:
|
|||||||
void SetGlobal( const CString &sName, const CString &val );
|
void SetGlobal( const CString &sName, const CString &val );
|
||||||
void UnsetGlobal( const CString &sName );
|
void UnsetGlobal( const CString &sName );
|
||||||
|
|
||||||
void SetGlobal( const CString &sName );
|
|
||||||
|
|
||||||
lua_State *L;
|
lua_State *L;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user