MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / dooptions

Function dooptions

deps/lua/src/loadlib.c:519–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517
518
519static void dooptions (lua_State *L, int n) {
520 int i;
521 for (i = 2; i <= n; i++) {
522 lua_pushvalue(L, i); /* get option (a function) */
523 lua_pushvalue(L, -2); /* module */
524 lua_call(L, 1, 0);
525 }
526}
527
528
529static void modinit (lua_State *L, const char *modname) {

Callers 1

ll_moduleFunction · 0.85

Calls 2

lua_pushvalueFunction · 0.85
lua_callFunction · 0.85

Tested by

no test coverage detected