| 74 | |
| 75 | |
| 76 | static lua_State *getthread (lua_State *L, int *arg) { |
| 77 | if (lua_isthread(L, 1)) { |
| 78 | *arg = 1; |
| 79 | return lua_tothread(L, 1); |
| 80 | } |
| 81 | else { |
| 82 | *arg = 0; |
| 83 | return L; |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | |
| 88 | static void treatstackoption (lua_State *L, lua_State *L1, const char *fname) { |
no test coverage detected