Lua/LuaInstance: Rename automatic SetField/SetGlobal to PushField/PushGlobal

Former-commit-id: add576baa5ee7c12121925b5b4fb5fc37fe85042
This commit is contained in:
Lynix
2016-04-23 22:18:43 +02:00
parent 3051b6bdde
commit 7b10bbaab0
4 changed files with 38 additions and 38 deletions

View File

@@ -714,12 +714,12 @@ namespace Nz
lua_replace(m_state, index);
}
void LuaInstance::SetField(const char* name, int tableIndex)
void LuaInstance::SetField(const char* name, int tableIndex) const
{
lua_setfield(m_state, tableIndex, name);
}
void LuaInstance::SetField(const String& name, int tableIndex)
void LuaInstance::SetField(const String& name, int tableIndex) const
{
lua_setfield(m_state, tableIndex, name.GetConstBuffer());
}