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

Function dooptions

third-party/lua-5.2.4/src/loadlib.c:558–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556
557
558static void dooptions (lua_State *L, int n) {
559 int i;
560 for (i = 2; i <= n; i++) {
561 if (lua_isfunction(L, i)) { /* avoid 'calling' extra info. */
562 lua_pushvalue(L, i); /* get option (a function) */
563 lua_pushvalue(L, -2); /* module */
564 lua_call(L, 1, 0);
565 }
566 }
567}
568
569
570static void modinit (lua_State *L, const char *modname) {

Callers 1

ll_moduleFunction · 0.70

Calls 2

lua_pushvalueFunction · 0.70
lua_callFunction · 0.50

Tested by

no test coverage detected