MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / lsys_load

Function lsys_load

third-party/lua-5.5.0/src/loadlib.c:109–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107
108
109static void *lsys_load (lua_State *L, const char *path, int seeglb) {
110 void *lib = dlopen(path, RTLD_NOW | (seeglb ? RTLD_GLOBAL : RTLD_LOCAL));
111 if (l_unlikely(lib == NULL))
112 lua_pushstring(L, dlerror());
113 return lib;
114}
115
116
117static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) {

Callers 1

lookforfuncFunction · 0.70

Calls 2

lua_pushstringFunction · 0.70
pusherrorFunction · 0.70

Tested by

no test coverage detected