| 1788 | |
| 1789 | |
| 1790 | static int testC (lua_State *L) { |
| 1791 | lua_State *L1; |
| 1792 | const char *pc; |
| 1793 | if (lua_isuserdata(L, 1)) { |
| 1794 | L1 = getstate(L); |
| 1795 | pc = luaL_checkstring(L, 2); |
| 1796 | } |
| 1797 | else if (lua_isthread(L, 1)) { |
| 1798 | L1 = lua_tothread(L, 1); |
| 1799 | pc = luaL_checkstring(L, 2); |
| 1800 | } |
| 1801 | else { |
| 1802 | L1 = L; |
| 1803 | pc = luaL_checkstring(L, 1); |
| 1804 | } |
| 1805 | return runC(L, L1, pc); |
| 1806 | } |
| 1807 | |
| 1808 | |
| 1809 | static int Cfunc (lua_State *L) { |
nothing calls this directly
no test coverage detected