MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / gctm

Function gctm

Source/Misc/lua/src/lua.c:13054–13059  ·  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

13052** handle
13053*/
13054static int gctm (lua_State *L) {
13055void **lib = (void **)luaL_checkudata(L, 1, "_LOADLIB");
13056if (*lib) ll_unloadlib(*lib);
13057*lib = NULL; /* mark library as closed */
13058return 0;
13059}
13060
13061
13062static int ll_loadfunc (lua_State *L, const char *path, const char *sym) {

Callers

nothing calls this directly

Calls 2

luaL_checkudataFunction · 0.85
ll_unloadlibFunction · 0.85

Tested by

no test coverage detected