| 390 | |
| 391 | |
| 392 | static int luaB_xpcall (lua_State *L) { |
| 393 | int status; |
| 394 | luaL_checkany(L, 2); |
| 395 | lua_settop(L, 2); |
| 396 | lua_insert(L, 1); /* put error function under function to be called */ |
| 397 | status = lua_pcall(L, 0, LUA_MULTRET, 1); |
| 398 | lua_pushboolean(L, (status == 0)); |
| 399 | lua_replace(L, 1); |
| 400 | return lua_gettop(L); /* return status + all results */ |
| 401 | } |
| 402 | |
| 403 | |
| 404 | static int luaB_tostring (lua_State *L) { |
nothing calls this directly
no test coverage detected