MCPcopy Create free account
hub / github.com/DFHack/dfhack / TailPCallK

Function TailPCallK

library/include/LuaTools.h:219–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217 */
218 template<int (*cb)(lua_State*,int,lua_KContext)>
219 int TailPCallK(lua_State *state, int narg, int nret, int errfun, int ctx) {
220 int rv = lua_pcallk(state, narg, nret, errfun, ctx, cb);
221 return cb(state, rv, ctx);
222 }
223
224 /**
225 * Call through to the function with try/catch for C++ exceptions.

Callers

nothing calls this directly

Calls 1

lua_pcallkFunction · 0.85

Tested by

no test coverage detected