MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaLoadLib

Function luaLoadLib

app/redis-6.2.6/src/scripting.c:1045–1049  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1043 * ------------------------------------------------------------------------- */
1044
1045void luaLoadLib(lua_State *lua, const char *libname, lua_CFunction luafunc) {
1046 lua_pushcfunction(lua, luafunc);
1047 lua_pushstring(lua, libname);
1048 lua_call(lua, 1, 0);
1049}
1050
1051LUALIB_API int (luaopen_cjson) (lua_State *L);
1052LUALIB_API int (luaopen_struct) (lua_State *L);

Callers 1

luaLoadLibrariesFunction · 0.85

Calls 2

lua_callFunction · 0.85
lua_pushstringFunction · 0.50

Tested by

no test coverage detected