From 165389b27bc54e7c5214276db177e3ef75226f18 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 15 Feb 2024 11:17:39 -0300 Subject: New interface to function 'luaL_openselectedlibs' Instead of preloading all non-loaded libraries, there is another mask to select which libraries to preload. --- lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua.c') diff --git a/lua.c b/lua.c index e574ec9b..6a9bb948 100644 --- a/lua.c +++ b/lua.c @@ -618,7 +618,7 @@ static void doREPL (lua_State *L) { /* }================================================================== */ #if !defined(luai_openlibs) -#define luai_openlibs(L) luaL_openlibs(L) +#define luai_openlibs(L) luaL_openselectedlibs(L, ~0, 0) #endif -- cgit v1.2.3-55-g6feb