MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / ll_sym

Function ll_sym

other_src/lua/src/loadlib.cpp:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84} FuncPointerUnion;
85
86static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) {
87 assert(sizeof(void*) == sizeof(lua_CFunction));
88 FuncPointerUnion fpu;
89 fpu.pointer = dlsym(lib, sym);
90 if (fpu.func == NULL) {
91 lua_pushstring(L, dlerror());
92 }
93 return fpu.func;
94}
95
96/* }====================================================== */
97

Callers 1

ll_loadfuncFunction · 0.70

Calls 3

lua_pushstringFunction · 0.70
pusherrorFunction · 0.70
lua_pushfstringFunction · 0.70

Tested by

no test coverage detected