remove PushStackNil
This commit is contained in:
@@ -73,14 +73,9 @@ void LuaManager::SetGlobal( const CString &sName, const CString &val )
|
|||||||
}
|
}
|
||||||
|
|
||||||
void LuaManager::UnsetGlobal( const CString &sName )
|
void LuaManager::UnsetGlobal( const CString &sName )
|
||||||
{
|
|
||||||
PushStackNil();
|
|
||||||
SetGlobal( sName );
|
|
||||||
}
|
|
||||||
|
|
||||||
void LuaManager::PushStackNil()
|
|
||||||
{
|
{
|
||||||
lua_pushnil( L );
|
lua_pushnil( L );
|
||||||
|
SetGlobal( sName );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -86,7 +86,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 PushStackNil();
|
|
||||||
void PushNopFunction();
|
void PushNopFunction();
|
||||||
|
|
||||||
bool GetStack( int pos, int &out );
|
bool GetStack( int pos, int &out );
|
||||||
|
|||||||
Reference in New Issue
Block a user