| 92 | |
| 93 | |
| 94 | static lua_State *getthread (lua_State *L, int *arg) { |
| 95 | if (lua_isthread(L, 1)) { |
| 96 | *arg = 1; |
| 97 | return lua_tothread(L, 1); |
| 98 | } |
| 99 | else { |
| 100 | *arg = 0; |
| 101 | return L; |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | |
| 106 | static void treatstackoption (lua_State *L, lua_State *L1, const char *fname) { |
no test coverage detected