| 556 | |
| 557 | |
| 558 | static 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 | |
| 570 | static void modinit (lua_State *L, const char *modname) { |
no test coverage detected