| 55 | |
| 56 | |
| 57 | static int luaB_coresume (lua_State *L) { |
| 58 | lua_State *co = getco(L); |
| 59 | int r; |
| 60 | r = auxresume(L, co, lua_gettop(L) - 1); |
| 61 | if (r < 0) { |
| 62 | lua_pushboolean(L, 0); |
| 63 | lua_insert(L, -2); |
| 64 | return 2; /* return false + error message */ |
| 65 | } |
| 66 | else { |
| 67 | lua_pushboolean(L, 1); |
| 68 | lua_insert(L, -(r + 1)); |
| 69 | return r + 1; /* return true + 'resume' returns */ |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | |
| 74 | static int luaB_auxwrap (lua_State *L) { |
nothing calls this directly
no test coverage detected