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 e2bd857..8dc20d1 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 bd67cfb..cd885bc 100644 --- a/sol/table.hpp +++ b/sol/table.hpp @@ -207,7 +207,7 @@ class table : public reference { stack::push(state(), userobjdata); luaL_setfuncs(state(), funcreg, upvalues + 1); - pop(); + pop(); return *this; } @@ -225,7 +225,7 @@ class table : public reference { push(); int upvalues = stack::push_user(state(), target); luaL_setfuncs(state(), funcreg, upvalues); - pop(); + pop(); return *this; }