| 139 | |
| 140 | |
| 141 | static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) { |
| 142 | lua_CFunction f = cast_func(dlsym(lib, sym)); |
| 143 | if (l_unlikely(f == NULL)) |
| 144 | lua_pushstring(L, dlerror()); |
| 145 | return f; |
| 146 | } |
| 147 | |
| 148 | /* }====================================================== */ |
| 149 |
no test coverage detected