| 131 | |
| 132 | |
| 133 | static void *lsys_load (lua_State *L, const char *path, int seeglb) { |
| 134 | void *lib = dlopen(path, RTLD_NOW | (seeglb ? RTLD_GLOBAL : RTLD_LOCAL)); |
| 135 | if (l_unlikely(lib == NULL)) |
| 136 | lua_pushstring(L, dlerror()); |
| 137 | return lib; |
| 138 | } |
| 139 | |
| 140 | |
| 141 | static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) { |
no test coverage detected