mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
New interface to function 'luaL_openselectedlibs'
Instead of preloading all non-loaded libraries, there is another mask to select which libraries to preload.
This commit is contained in:
parent
c8121ce34b
commit
165389b27b
8 changed files with 80 additions and 56 deletions
2
lua.c
2
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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue