| 559 | |
| 560 | |
| 561 | static int luaB_auxwrap (lua_State *L) { |
| 562 | lua_State *co = lua_tothread(L, lua_upvalueindex(1)); |
| 563 | int r = auxresume(L, co, lua_gettop(L)); |
| 564 | if (r < 0) { |
| 565 | if (lua_isstring(L, -1)) { /* error object is a string? */ |
| 566 | luaL_where(L, 1); /* add extra info */ |
| 567 | lua_insert(L, -2); |
| 568 | lua_concat(L, 2); |
| 569 | } |
| 570 | lua_error(L); /* propagate error */ |
| 571 | } |
| 572 | return r; |
| 573 | } |
| 574 | |
| 575 | |
| 576 | static int luaB_cocreate (lua_State *L) { |
nothing calls this directly
no test coverage detected