| 63 | |
| 64 | |
| 65 | static int luaB_auxwrap (lua_State *L) { |
| 66 | lua_State *co = lua_tothread(L, lua_upvalueindex(1)); |
| 67 | int r = auxresume(L, co, lua_gettop(L)); |
| 68 | if (r < 0) { |
| 69 | if (lua_isstring(L, -1)) { /* error object is a string? */ |
| 70 | luaL_where(L, 1); /* add extra info */ |
| 71 | lua_insert(L, -2); |
| 72 | lua_concat(L, 2); |
| 73 | } |
| 74 | return lua_error(L); /* propagate error */ |
| 75 | } |
| 76 | return r; |
| 77 | } |
| 78 | |
| 79 | |
| 80 | static int luaB_cocreate (lua_State *L) { |
nothing calls this directly
no test coverage detected