** __gc tag method: calls library's `ll_unloadlib' function with the lib ** handle */
| 13052 | ** handle |
| 13053 | */ |
| 13054 | static int gctm (lua_State *L) { |
| 13055 | void **lib = (void **)luaL_checkudata(L, 1, "_LOADLIB"); |
| 13056 | if (*lib) ll_unloadlib(*lib); |
| 13057 | *lib = NULL; /* mark library as closed */ |
| 13058 | return 0; |
| 13059 | } |
| 13060 | |
| 13061 | |
| 13062 | static int ll_loadfunc (lua_State *L, const char *path, const char *sym) { |
nothing calls this directly
no test coverage detected