| 80 | |
| 81 | |
| 82 | static lua_State *getthread (lua_State *L, int *arg) { |
| 83 | if (lua_isthread(L, 1)) { |
| 84 | *arg = 1; |
| 85 | return lua_tothread(L, 1); |
| 86 | } |
| 87 | else { |
| 88 | *arg = 0; |
| 89 | return L; |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | |
| 94 | static void treatstackoption (lua_State *L, lua_State *L1, const char *fname) { |
no test coverage detected