From fa67300f537808f7e3fa3bb501f1f268d520073b Mon Sep 17 00:00:00 2001 From: Pixel Date: Thu, 27 Oct 2011 09:18:52 -0700 Subject: Fixing a few oddities, and having the 'clean' target cleaning LuaJIT as well. --- includes/BLua.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/BLua.h') diff --git a/includes/BLua.h b/includes/BLua.h index addd081..fe84db9 100644 --- a/includes/BLua.h +++ b/includes/BLua.h @@ -47,7 +47,7 @@ class Lua { typedef int (*lua_CallWrapper)(lua_State *, lua_CFunction); - int ref(int t = -2) { luaL_ref(L, t); } + int ref(int t = -2) { return luaL_ref(L, t); } void unref(int ref, int t = -1) { luaL_unref(L, t, ref); } void open_base(); @@ -57,7 +57,7 @@ class Lua { void open_debug(); void open_bit(); void open_jit(); - int wrap_open(openlualib_t open) { int n = gettop(); int r = open(L); while (n < gettop()) remove(n); } + int wrap_open(openlualib_t open) { int n = gettop(); int r = open(L); while (n < gettop()) remove(n); return r; } void openlib(const String & libname, const struct luaL_reg *l, int nup) { luaL_openlib(L, libname.to_charp(), l, nup); } void setCallWrap(lua_CallWrapper wrapper); -- cgit v1.2.3