MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / dooptions

Function dooptions

src/Chain/libraries/glua/loadlib.cpp:688–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686
687
688static void dooptions(lua_State *L, int n) {
689 int i;
690 for (i = 2; i <= n; i++) {
691 if (lua_isfunction(L, i)) { /* avoid 'calling' extra info. */
692 lua_pushvalue(L, i); /* get option (a function) */
693 lua_pushvalue(L, -2); /* module */
694 lua_call(L, 1, 0);
695 }
696 }
697}
698
699
700static 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