| 686 | |
| 687 | |
| 688 | static 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 | |
| 700 | static void modinit(lua_State *L, const char *modname) { |
no test coverage detected