remove GetStack
This commit is contained in:
@@ -125,17 +125,6 @@ void LuaManager::ReadArrayFromTableB( vector<bool> &aOut, lua_State *L )
|
||||
}
|
||||
}
|
||||
|
||||
bool LuaManager::GetStack( int pos, int &out )
|
||||
{
|
||||
if( pos < 0 )
|
||||
pos = lua_gettop(L) - pos - 1;
|
||||
if( pos < 1 )
|
||||
return false;
|
||||
|
||||
out = (int) lua_tonumber( L, pos );
|
||||
return true;
|
||||
}
|
||||
|
||||
void LuaManager::SetGlobal( const CString &sName )
|
||||
{
|
||||
lua_setglobal( L, sName );
|
||||
|
||||
@@ -86,7 +86,6 @@ public:
|
||||
void SetGlobal( const CString &sName, const CString &val );
|
||||
void UnsetGlobal( const CString &sName );
|
||||
|
||||
bool GetStack( int pos, int &out );
|
||||
void SetGlobal( const CString &sName );
|
||||
|
||||
/* Create a Lua array (a table with indices starting at 1) of the given vector,
|
||||
|
||||
Reference in New Issue
Block a user