| 11246 | |
| 11247 | |
| 11248 | static int luaB_xpcall (lua_State *L) { |
| 11249 | int status; |
| 11250 | luaL_checkany(L, 2); |
| 11251 | lua_settop(L, 2); |
| 11252 | lua_insert(L, 1); /* put error function under function to be called */ |
| 11253 | status = lua_pcall(L, 0, LUA_MULTRET, 1); |
| 11254 | lua_pushboolean(L, (status == 0)); |
| 11255 | lua_replace(L, 1); |
| 11256 | return lua_gettop(L); /* return status + all results */ |
| 11257 | } |
| 11258 | |
| 11259 | |
| 11260 | static int luaB_tostring (lua_State *L) { |
nothing calls this directly
no test coverage detected