diff options
author | Jude Melton-Houghton <jwmhjwmh@gmail.com> | 2022-09-26 07:23:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-26 07:23:48 -0400 |
commit | 03428d9825cfdf2cfaed6ac9410dafccac0d4f3a (patch) | |
tree | 3f6bacfa9e074e6e523698a10b0195349612eaa8 /lib/lua/src/lua.h | |
parent | f916398a541dbd09cbf14409f358556bc42f5535 (diff) | |
download | minetest-03428d9825cfdf2cfaed6ac9410dafccac0d4f3a.tar.xz |
Modify PUC Lua to wrap C++ exceptions (#12445)
Diffstat (limited to 'lib/lua/src/lua.h')
-rw-r--r-- | lib/lua/src/lua.h | 5 |
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 |