| 72 | |
| 73 | |
| 74 | static int luaB_auxwrap (lua_State *L) { |
| 75 | lua_State *co = lua_tothread(L, lua_upvalueindex(1)); |
| 76 | int r = auxresume(L, co, lua_gettop(L)); |
| 77 | if (r < 0) { |
| 78 | if (lua_type(L, -1) == LUA_TSTRING) { /* error object is a string? */ |
| 79 | luaL_where(L, 1); /* add extra info */ |
| 80 | lua_insert(L, -2); |
| 81 | lua_concat(L, 2); |
| 82 | } |
| 83 | return lua_error(L); /* propagate error */ |
| 84 | } |
| 85 | return r; |
| 86 | } |
| 87 | |
| 88 | |
| 89 | static int luaB_cocreate (lua_State *L) { |
nothing calls this directly
no test coverage detected