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

Function luaB_auxwrap

depends/lua/src/lcorolib.c:74–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73
74static int luaB_auxwrap (lua_State *L) {
75 lua_State *co = lua_tothread(L, lua_upvalueindex(1));
76 int r = auxresume(L, co, lua_gettop(L));
77 if (r < 0) {
78 if (lua_type(L, -1) == LUA_TSTRING) { /* error object is a string? */
79 luaL_where(L, 1); /* add extra info */
80 lua_insert(L, -2);
81 lua_concat(L, 2);
82 }
83 return lua_error(L); /* propagate error */
84 }
85 return r;
86}
87
88
89static int luaB_cocreate (lua_State *L) {

Callers

nothing calls this directly

Calls 7

lua_tothreadFunction · 0.85
auxresumeFunction · 0.85
lua_gettopFunction · 0.85
lua_typeFunction · 0.85
luaL_whereFunction · 0.85
lua_concatFunction · 0.85
lua_errorFunction · 0.85

Tested by

no test coverage detected