MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaB_auxwrap

Function luaB_auxwrap

Source/Misc/lua/src/lua.c:11425–11437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11423
11424
11425static int luaB_auxwrap (lua_State *L) {
11426lua_State *co = lua_tothread(L, lua_upvalueindex(1));
11427int r = auxresume(L, co, lua_gettop(L));
11428if (r < 0) {
11429if (lua_isstring(L, -1)) { /* error object is a string? */
11430luaL_where(L, 1); /* add extra info */
11431lua_insert(L, -2);
11432lua_concat(L, 2);
11433}
11434lua_error(L); /* propagate error */
11435}
11436return r;
11437}
11438
11439
11440static 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