| 396 | |
| 397 | |
| 398 | static int luaB_xpcall (lua_State *L) { |
| 399 | int status; |
| 400 | int n = lua_gettop(L); |
| 401 | luaL_argcheck(L, n >= 2, 2, "value expected"); |
| 402 | lua_pushvalue(L, 1); /* exchange function... */ |
| 403 | lua_copy(L, 2, 1); /* ...and error handler */ |
| 404 | lua_replace(L, 2); |
| 405 | status = lua_pcallk(L, n - 2, LUA_MULTRET, 1, 0, pcallcont); |
| 406 | return finishpcall(L, (status == LUA_OK)); |
| 407 | } |
| 408 | |
| 409 | |
| 410 | static int luaB_tostring (lua_State *L) { |
nothing calls this directly
no test coverage detected