aboutsummaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-02-15 11:17:39 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-02-15 11:17:39 -0300
commit165389b27bc54e7c5214276db177e3ef75226f18 (patch)
treef6ce6e7bff04ff6cbe735ee68d64290cc04c04bf /lua.c
parentc8121ce34b39c6fd31899f4da91e26063c8af54f (diff)
downloadlua-165389b27bc54e7c5214276db177e3ef75226f18.tar.gz
lua-165389b27bc54e7c5214276db177e3ef75226f18.tar.bz2
lua-165389b27bc54e7c5214276db177e3ef75226f18.zip
New interface to function 'luaL_openselectedlibs'
Instead of preloading all non-loaded libraries, there is another mask to select which libraries to preload.
Diffstat (limited to 'lua.c')
-rw-r--r--lua.c2
1 files changed, 1 insertions, 1 deletions
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) {
618/* }================================================================== */ 618/* }================================================================== */
619 619
620#if !defined(luai_openlibs) 620#if !defined(luai_openlibs)
621#define luai_openlibs(L) luaL_openlibs(L) 621#define luai_openlibs(L) luaL_openselectedlibs(L, ~0, 0)
622#endif 622#endif
623 623
624 624