aboutsummaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-12-07 15:12:52 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-12-07 15:12:52 -0300
commitd738c8d18bcc5651109b3a46103d6aa983772e68 (patch)
treee66f2f38d7cc1600da3ea19b134c7c21636a3870 /ltests.h
parent0270c204c235a495ce4702ac3891eb30752d0c8d (diff)
downloadlua-d738c8d18bcc5651109b3a46103d6aa983772e68.tar.gz
lua-d738c8d18bcc5651109b3a46103d6aa983772e68.tar.bz2
lua-d738c8d18bcc5651109b3a46103d6aa983772e68.zip
New function 'luaL_openselectedlibs'
Makes it easier to start Lua with only some standard libraries.
Diffstat (limited to 'ltests.h')
-rw-r--r--ltests.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltests.h b/ltests.h
index ec520498..45d5beba 100644
--- a/ltests.h
+++ b/ltests.h
@@ -103,8 +103,8 @@ LUA_API void *debug_realloc (void *ud, void *block,
103 103
104#if defined(lua_c) 104#if defined(lua_c)
105#define luaL_newstate() lua_newstate(debug_realloc, &l_memcontrol) 105#define luaL_newstate() lua_newstate(debug_realloc, &l_memcontrol)
106#define luaL_openlibs(L) \ 106#define luai_openlibs(L) \
107 { (luaL_openlibs)(L); \ 107 { luaL_openlibs(L); \
108 luaL_requiref(L, "T", luaB_opentests, 1); \ 108 luaL_requiref(L, "T", luaB_opentests, 1); \
109 lua_pop(L, 1); } 109 lua_pop(L, 1); }
110#endif 110#endif