aboutsummaryrefslogtreecommitdiff
path: root/lib/lua/src/lua.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lua/src/lua.h')
-rw-r--r--lib/lua/src/lua.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/lua/src/lua.h b/lib/lua/src/lua.h
index a4b73e743..1d7fe927f 100644
--- a/lib/lua/src/lua.h
+++ b/lib/lua/src/lua.h
@@ -113,6 +113,11 @@ LUA_API lua_State *(lua_newthread) (lua_State *L);
LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf);
+/* MINETEST-SPECIFIC CHANGE: Let custom code wrap C function calls. */
+typedef int (*lua_CFunctionwrapper)(lua_State *L, lua_CFunction f);
+LUA_API lua_CFunctionwrapper (lua_atccall) (lua_State *L,
+ lua_CFunctionwrapper wrapf);
+
/*
** basic stack manipulation