MCPcopy Create free account
hub / github.com/DFHack/dfhack / dooptions

Function dooptions

depends/lua/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.85

Calls 1

lua_pushvalueFunction · 0.85

Tested by

no test coverage detected