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