summaryrefslogtreecommitdiff
path: root/includes/BLua.h
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-10-27 09:18:52 -0700
committerPixel <pixel@nobis-crew.org>2011-10-27 09:18:52 -0700
commitfa67300f537808f7e3fa3bb501f1f268d520073b (patch)
tree4793a47c83761808415967e034c67f90fa1fd6e9 /includes/BLua.h
parent58327525051d0e282b4bc2d0d7ddd1bbad2e9b65 (diff)
Fixing a few oddities, and having the 'clean' target cleaning LuaJIT as well.
Diffstat (limited to 'includes/BLua.h')
-rw-r--r--includes/BLua.h4
1 files changed, 2 insertions, 2 deletions
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);