Lua/LuaState: Add RawEqual function

This commit is contained in:
Lynix 2018-11-14 23:54:31 +01:00
parent c4cf6d2f53
commit a3fd69a453
3 changed files with 8 additions and 0 deletions

View File

@ -155,6 +155,7 @@ Nazara Engine:
- Added ENetHost and ENetPeer accessor to total packet/data received/sent/lost
- ⚠ **Changed the way resources were Loaded, almost every LoadFromX and OpenFromX methods are now static and create the object themselves.**
- ⚠ SoundStream is now responsible for loaders instead of Music, and is now threadsafe (you can now load a stream only once and play it multiple times at the same time)
- Added LuaState::RawEqual
Nazara Development Kit:
- Added ImageWidget (#139)

View File

@ -157,6 +157,8 @@ namespace Nz
void* PushUserdata(std::size_t size) const;
void PushValue(int index) const;
bool RawEqual(int index1, int index2) const;
void Remove(int index) const;
void Replace(int index) const;

View File

@ -712,6 +712,11 @@ namespace Nz
lua_pushvalue(m_state, index);
}
bool LuaState::RawEqual(int index1, int index2) const
{
return lua_rawequal(m_state, index1, index2);
}
void LuaState::Remove(int index) const
{
lua_remove(m_state, index);