| 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. |
nothing calls this directly
no test coverage detected