MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / luaB_auxwrap

Function luaB_auxwrap

lua/lbaselib.c:569–581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567
568
569static int luaB_auxwrap (lua_State *L) {
570 lua_State *co = lua_tothread(L, lua_upvalueindex(1));
571 int r = auxresume(L, co, lua_gettop(L));
572 if (r < 0) {
573 if (lua_isstring(L, -1)) { /* error object is a string? */
574 luaL_where(L, 1); /* add extra info */
575 lua_insert(L, -2);
576 lua_concat(L, 2);
577 }
578 lua_error(L); /* propagate error */
579 }
580 return r;
581}
582
583
584static 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