Lua/LuaInstance: Set SetTable as const

Former-commit-id: d480e243ddaf6fb6a016fde9ad9642b82e4703fe
This commit is contained in:
Lynix 2016-03-30 17:50:48 +02:00
parent cc9aec3a52
commit 308b297a46
2 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ namespace Nz
void SetMetatable(const String& tname) const; void SetMetatable(const String& tname) const;
void SetMetatable(int index) const; void SetMetatable(int index) const;
void SetMemoryLimit(UInt32 memoryLimit); void SetMemoryLimit(UInt32 memoryLimit);
void SetTable(int index = -3); void SetTable(int index = -3) const;
void SetTimeLimit(UInt32 timeLimit); void SetTimeLimit(UInt32 timeLimit);
bool ToBoolean(int index) const; bool ToBoolean(int index) const;

View File

@ -754,7 +754,7 @@ namespace Nz
m_memoryLimit = memoryLimit; m_memoryLimit = memoryLimit;
} }
void LuaInstance::SetTable(int index) void LuaInstance::SetTable(int index) const
{ {
lua_settable(m_state, index); lua_settable(m_state, index);
} }