| 644 | |
| 645 | |
| 646 | static 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 | |
| 658 | static void modinit (lua_State *L, const char *modname) { |
no test coverage detected