MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaB_auxwrap

Function luaB_auxwrap

freebsd/contrib/openzfs/module/lua/lcorolib.c:65–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63
64
65static int luaB_auxwrap (lua_State *L) {
66 lua_State *co = lua_tothread(L, lua_upvalueindex(1));
67 int r = auxresume(L, co, lua_gettop(L));
68 if (r < 0) {
69 if (lua_isstring(L, -1)) { /* error object is a string? */
70 luaL_where(L, 1); /* add extra info */
71 lua_insert(L, -2);
72 lua_concat(L, 2);
73 }
74 return lua_error(L); /* propagate error */
75 }
76 return r;
77}
78
79
80static int luaB_cocreate (lua_State *L) {

Callers

nothing calls this directly

Calls 8

lua_tothreadFunction · 0.70
auxresumeFunction · 0.70
lua_gettopFunction · 0.70
lua_isstringFunction · 0.70
luaL_whereFunction · 0.70
lua_insertFunction · 0.70
lua_concatFunction · 0.70
lua_errorFunction · 0.70

Tested by

no test coverage detected