MCPcopy Create free account
hub / github.com/DFHack/dfhack / dfhack_cowrap

Function dfhack_cowrap

library/LuaTools.cpp:944–950  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

942}
943
944static int dfhack_cowrap (lua_State *L) {
945 luaL_checktype(L, 1, LUA_TFUNCTION);
946 lua_settop(L, 1);
947 Lua::NewCoroutine(L);
948 lua_pushcclosure(L, dfhack_coauxwrap, 1);
949 return 1;
950}
951
952static void add_luacov_coroutine_wrapper(lua_State *L)
953{

Callers

nothing calls this directly

Calls 3

luaL_checktypeFunction · 0.85
lua_settopFunction · 0.85
lua_pushcclosureFunction · 0.85

Tested by

no test coverage detected