pull code out of the header
This commit is contained in:
@@ -54,6 +54,30 @@ const char *ChunkReaderString( lua_State *L, void *ptr, size_t *size )
|
||||
return ret;
|
||||
}
|
||||
|
||||
void LuaManager::SetGlobal( const CString &sName, int val )
|
||||
{
|
||||
LuaHelpers::PushStack(val);
|
||||
SetGlobal( sName );
|
||||
}
|
||||
|
||||
void LuaManager::SetGlobal( const CString &sName, bool val )
|
||||
{
|
||||
LuaHelpers::PushStack(val);
|
||||
SetGlobal( sName );
|
||||
}
|
||||
|
||||
void LuaManager::SetGlobal( const CString &sName, const CString &val )
|
||||
{
|
||||
LuaHelpers::PushStack(val);
|
||||
SetGlobal( sName );
|
||||
}
|
||||
|
||||
void LuaManager::UnsetGlobal( const CString &sName )
|
||||
{
|
||||
PushStackNil();
|
||||
SetGlobal( sName );
|
||||
}
|
||||
|
||||
void LuaManager::PushStackNil()
|
||||
{
|
||||
lua_pushnil( L );
|
||||
|
||||
@@ -81,10 +81,10 @@ public:
|
||||
|
||||
void Fail( const CString &err );
|
||||
|
||||
void SetGlobal( const CString &sName, int val ) { LuaHelpers::PushStack(val); SetGlobal( sName ); }
|
||||
void SetGlobal( const CString &sName, bool val ) { LuaHelpers::PushStack(val); SetGlobal( sName ); }
|
||||
void SetGlobal( const CString &sName, const CString &val ) { LuaHelpers::PushStack(val); SetGlobal( sName ); }
|
||||
void UnsetGlobal( const CString &sName ) { PushStackNil(); SetGlobal( sName ); }
|
||||
void SetGlobal( const CString &sName, int val );
|
||||
void SetGlobal( const CString &sName, bool val );
|
||||
void SetGlobal( const CString &sName, const CString &val );
|
||||
void UnsetGlobal( const CString &sName );
|
||||
|
||||
void PushStackNil();
|
||||
void PushNopFunction();
|
||||
|
||||
Reference in New Issue
Block a user