MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / testC

Function testC

Dependencies/lua/src/ltests.c:1790–1806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1788
1789
1790static 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
1809static int Cfunc (lua_State *L) {

Callers

nothing calls this directly

Calls 4

lua_isuserdataFunction · 0.85
getstateFunction · 0.85
lua_tothreadFunction · 0.85
runCFunction · 0.85

Tested by

no test coverage detected