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

Function luaLoadLibraries

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

Source from the content-addressed store, hash-verified

1054LUALIB_API int (luaopen_bit) (lua_State *L);
1055
1056void luaLoadLibraries(lua_State *lua) {
1057 luaLoadLib(lua, "", luaopen_base);
1058 luaLoadLib(lua, LUA_TABLIBNAME, luaopen_table);
1059 luaLoadLib(lua, LUA_STRLIBNAME, luaopen_string);
1060 luaLoadLib(lua, LUA_MATHLIBNAME, luaopen_math);
1061 luaLoadLib(lua, LUA_DBLIBNAME, luaopen_debug);
1062 luaLoadLib(lua, "cjson", luaopen_cjson);
1063 luaLoadLib(lua, "struct", luaopen_struct);
1064 luaLoadLib(lua, "cmsgpack", luaopen_cmsgpack);
1065 luaLoadLib(lua, "bit", luaopen_bit);
1066
1067#if 0 /* Stuff that we don't load currently, for sandboxing concerns. */
1068 luaLoadLib(lua, LUA_LOADLIBNAME, luaopen_package);
1069 luaLoadLib(lua, LUA_OSLIBNAME, luaopen_os);
1070#endif
1071}
1072
1073/* Remove a functions that we don't want to expose to the Redis scripting
1074 * environment. */

Callers 1

scriptingInitFunction · 0.85

Calls 1

luaLoadLibFunction · 0.85

Tested by

no test coverage detected