MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / luaLoadLib

Function luaLoadLib

src/scripting.cpp:1059–1063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1057 * ------------------------------------------------------------------------- */
1058
1059void luaLoadLib(lua_State *lua, const char *libname, lua_CFunction luafunc) {
1060 lua_pushcfunction(lua, luafunc);
1061 lua_pushstring(lua, libname);
1062 lua_call(lua, 1, 0);
1063}
1064
1065extern "C" {
1066LUALIB_API int (luaopen_cjson) (lua_State *L);

Callers 1

luaLoadLibrariesFunction · 0.85

Calls 2

lua_pushstringFunction · 0.85
lua_callFunction · 0.85

Tested by

no test coverage detected