diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-02-15 11:17:39 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-02-15 11:17:39 -0300 |
commit | 165389b27bc54e7c5214276db177e3ef75226f18 (patch) | |
tree | f6ce6e7bff04ff6cbe735ee68d64290cc04c04bf /lua.c | |
parent | c8121ce34b39c6fd31899f4da91e26063c8af54f (diff) | |
download | lua-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 | ||