| 382 | |
| 383 | |
| 384 | static int luaB_xpcall (lua_State *L) { |
| 385 | int status; |
| 386 | luaL_checkany(L, 2); |
| 387 | lua_settop(L, 2); |
| 388 | lua_insert(L, 1); /* put error function under function to be called */ |
| 389 | status = lua_pcall(L, 0, LUA_MULTRET, 1); |
| 390 | lua_pushboolean(L, (status == 0)); |
| 391 | lua_replace(L, 1); |
| 392 | return lua_gettop(L); /* return status + all results */ |
| 393 | } |
| 394 | |
| 395 | |
| 396 | static int luaB_tostring (lua_State *L) { |
nothing calls this directly
no test coverage detected