| 567 | |
| 568 | |
| 569 | static int luaB_auxwrap (lua_State *L) { |
| 570 | lua_State *co = lua_tothread(L, lua_upvalueindex(1)); |
| 571 | int r = auxresume(L, co, lua_gettop(L)); |
| 572 | if (r < 0) { |
| 573 | if (lua_isstring(L, -1)) { /* error object is a string? */ |
| 574 | luaL_where(L, 1); /* add extra info */ |
| 575 | lua_insert(L, -2); |
| 576 | lua_concat(L, 2); |
| 577 | } |
| 578 | lua_error(L); /* propagate error */ |
| 579 | } |
| 580 | return r; |
| 581 | } |
| 582 | |
| 583 | |
| 584 | static int luaB_cocreate (lua_State *L) { |
nothing calls this directly
no test coverage detected