From d738c8d18bcc5651109b3a46103d6aa983772e68 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 7 Dec 2022 15:12:52 -0300 Subject: New function 'luaL_openselectedlibs' Makes it easier to start Lua with only some standard libraries. --- ltests.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltests.h') 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, #if defined(lua_c) #define luaL_newstate() lua_newstate(debug_realloc, &l_memcontrol) -#define luaL_openlibs(L) \ - { (luaL_openlibs)(L); \ +#define luai_openlibs(L) \ + { luaL_openlibs(L); \ luaL_requiref(L, "T", luaB_opentests, 1); \ lua_pop(L, 1); } #endif -- cgit v1.2.3-55-g6feb