MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / lsys_load

Function lsys_load

libraries/AP_Scripting/lua/src/loadlib.c:128–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126
127
128static void *lsys_load (lua_State *L, const char *path, int seeglb) {
129 void *lib = dlopen(path, RTLD_NOW | (seeglb ? RTLD_GLOBAL : RTLD_LOCAL));
130 if (lib == NULL) lua_pushstring(L, dlerror());
131 return lib;
132}
133
134
135static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) {

Callers 1

lookforfuncFunction · 0.85

Calls 2

lua_pushstringFunction · 0.85
pusherrorFunction · 0.85

Tested by

no test coverage detected