summaryrefslogtreecommitdiff
path: root/include/BLua.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/BLua.h')
-rw-r--r--include/BLua.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/BLua.h b/include/BLua.h
index 4fc9aa0..5d61dc1 100644
--- a/include/BLua.h
+++ b/include/BLua.h
@@ -69,6 +69,7 @@ class Lua : public Base {
Lua();
Lua(const Lua &) throw (GeneralException);
virtual ~Lua();
+ typedef int (*lua_CallWrapper)(lua_State *, lua_CFunction);
void open_base();
void open_table();
void open_io(bool safe = true);
@@ -78,6 +79,7 @@ class Lua : public Base {
void open_dir();
void open_bit();
void open_jit();
+ void setcallwrap(lua_CallWrapper wrapper);
int wrap_open(openlualib_t open) { int n = gettop(); int r = open(L); while (n < gettop()) remove(n);}
void declarefunc(const String &, lua_CFunction, int = LUA_GLOBALSINDEX);
void call(const String &, int = LUA_GLOBALSINDEX, int = 0, int = 0);