** __gc tag method: calls library's `ll_unloadlib' function with the lib ** handle */
| 284 | ** handle |
| 285 | */ |
| 286 | static int gctm (lua_State *L) { |
| 287 | void **lib = (void **)luaL_checkudata(L, 1, "_LOADLIB"); |
| 288 | if (*lib) ll_unloadlib(*lib); |
| 289 | *lib = NULL; /* mark library as closed */ |
| 290 | return 0; |
| 291 | } |
| 292 | |
| 293 | |
| 294 | static int ll_loadfunc (lua_State *L, const char *path, const char *sym) { |
nothing calls this directly
no test coverage detected