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 /testes/coroutine.lua | |
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 'testes/coroutine.lua')
-rw-r--r-- | testes/coroutine.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testes/coroutine.lua b/testes/coroutine.lua index 664ef5fa..c1252ab8 100644 --- a/testes/coroutine.lua +++ b/testes/coroutine.lua | |||
@@ -705,7 +705,7 @@ else | |||
705 | 705 | ||
706 | T.testC(state, "settop 0") | 706 | T.testC(state, "settop 0") |
707 | 707 | ||
708 | T.loadlib(state, 1 | 2) -- load _G and 'package' | 708 | T.loadlib(state, 1 | 2, 4) -- load _G and 'package', preload 'coroutine' |
709 | 709 | ||
710 | assert(T.doremote(state, [[ | 710 | assert(T.doremote(state, [[ |
711 | coroutine = require'coroutine'; | 711 | coroutine = require'coroutine'; |