MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / docall

Function docall

third-party/lua-5.2.4/src/lua.c:172–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170
171
172static int docall (lua_State *L, int narg, int nres) {
173 int status;
174 int base = lua_gettop(L) - narg; /* function index */
175 lua_pushcfunction(L, traceback); /* push traceback function */
176 lua_insert(L, base); /* put it under chunk and args */
177 globalL = L; /* to be available to 'laction' */
178 signal(SIGINT, laction);
179 status = lua_pcall(L, narg, nres, base);
180 signal(SIGINT, SIG_DFL);
181 lua_remove(L, base); /* remove traceback function */
182 return status;
183}
184
185
186static void print_version (void) {

Callers 5

dofileFunction · 0.70
dostringFunction · 0.70
dolibraryFunction · 0.70
dottyFunction · 0.70
handle_scriptFunction · 0.70

Calls 4

lua_gettopFunction · 0.70
lua_insertFunction · 0.70
lua_removeFunction · 0.70
lua_pcallFunction · 0.50

Tested by

no test coverage detected