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

Function dooptions

third-party/lua-5.3.5/src/loadlib.c:646–655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

644
645
646static void dooptions (lua_State *L, int n) {
647 int i;
648 for (i = 2; i <= n; i++) {
649 if (lua_isfunction(L, i)) { /* avoid 'calling' extra info. */
650 lua_pushvalue(L, i); /* get option (a function) */
651 lua_pushvalue(L, -2); /* module */
652 lua_call(L, 1, 0);
653 }
654 }
655}
656
657
658static 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