MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / luaB_auxwrap

Function luaB_auxwrap

deps/lua/src/lbaselib.c:561–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559
560
561static int luaB_auxwrap (lua_State *L) {
562 lua_State *co = lua_tothread(L, lua_upvalueindex(1));
563 int r = auxresume(L, co, lua_gettop(L));
564 if (r < 0) {
565 if (lua_isstring(L, -1)) { /* error object is a string? */
566 luaL_where(L, 1); /* add extra info */
567 lua_insert(L, -2);
568 lua_concat(L, 2);
569 }
570 lua_error(L); /* propagate error */
571 }
572 return r;
573}
574
575
576static int luaB_cocreate (lua_State *L) {

Callers

nothing calls this directly

Calls 8

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

Tested by

no test coverage detected