MCPcopy Create free account
hub / github.com/F-Stack/f-stack / gctm

Function gctm

app/redis-6.2.6/deps/lua/src/loadlib.c:286–291  ·  view source on GitHub ↗

** __gc tag method: calls library's `ll_unloadlib' function with the lib ** handle */

Source from the content-addressed store, hash-verified

284** handle
285*/
286static 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
294static int ll_loadfunc (lua_State *L, const char *path, const char *sym) {

Callers

nothing calls this directly

Calls 2

ll_unloadlibFunction · 0.85
luaL_checkudataFunction · 0.70

Tested by

no test coverage detected