From 9c7e5f0b33a6c171f64da4ea830b6afd5ea38211 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Sat, 31 May 2014 18:07:50 -0400 Subject: [PATCH] Fixed some bad formatting and a missing include guard. --- sol/proxy.hpp | 5 +++++ sol/table.hpp | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/sol/proxy.hpp b/sol/proxy.hpp index e2bd8572..8dc20d13 100644 --- a/sol/proxy.hpp +++ b/sol/proxy.hpp @@ -19,6 +19,9 @@ // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#ifndef SOL_PROXY_HPP +#define SOL_PROXY_HPP + #include "traits.hpp" #include "object.hpp" #include "function.hpp" @@ -127,3 +130,5 @@ inline bool operator!= (const proxy& right, T&& left) { } } // sol + +#endif // SOL_PROXY_HPP diff --git a/sol/table.hpp b/sol/table.hpp index bd67cfb2..cd885bc8 100644 --- a/sol/table.hpp +++ b/sol/table.hpp @@ -207,7 +207,7 @@ private: stack::push(state(), userobjdata); luaL_setfuncs(state(), funcreg, upvalues + 1); - pop(); + pop(); return *this; } @@ -225,7 +225,7 @@ private: push(); int upvalues = stack::push_user(state(), target); luaL_setfuncs(state(), funcreg, upvalues); - pop(); + pop(); return *this; }