1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-14 17:15:21 +02:00

Modify PUC Lua to wrap C++ exceptions (#12445)

This commit is contained in:
Jude Melton-Houghton
2022-09-26 07:23:48 -04:00
committed by GitHub
parent f916398a54
commit 03428d9825
7 changed files with 105 additions and 4 deletions

View File

@@ -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