diff --git a/ChangeLog.md b/ChangeLog.md index ad2dd0a55..4f37e76d8 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -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) diff --git a/include/Nazara/Lua/LuaState.hpp b/include/Nazara/Lua/LuaState.hpp index 47c6d07cf..4890eae30 100644 --- a/include/Nazara/Lua/LuaState.hpp +++ b/include/Nazara/Lua/LuaState.hpp @@ -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; diff --git a/src/Nazara/Lua/LuaState.cpp b/src/Nazara/Lua/LuaState.cpp index dfbec1117..6065087d6 100644 --- a/src/Nazara/Lua/LuaState.cpp +++ b/src/Nazara/Lua/LuaState.cpp @@ -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);