** __gc tag method for CLIBS table: calls 'll_unloadlib' for all lib ** handles in list CLIBS */
| 273 | ** handles in list CLIBS |
| 274 | */ |
| 275 | static int gctm (lua_State *L) { |
| 276 | int n = luaL_len(L, 1); |
| 277 | for (; n >= 1; n--) { /* for each handle, in reverse order */ |
| 278 | lua_rawgeti(L, 1, n); /* get handle CLIBS[n] */ |
| 279 | ll_unloadlib(lua_touserdata(L, -1)); |
| 280 | lua_pop(L, 1); /* pop handle */ |
| 281 | } |
| 282 | return 0; |
| 283 | } |
| 284 | |
| 285 | |
| 286 | static int ll_loadfunc (lua_State *L, const char *path, const char *sym) { |
nothing calls this directly
no test coverage detected