pull code out of the header

This commit is contained in:
Glenn Maynard
2005-06-15 08:21:38 +00:00
parent e3a8b72639
commit 52f0d9d74c
2 changed files with 28 additions and 4 deletions
+24
View File
@@ -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 );
+4 -4
View File
@@ -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();