aboutsummaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'lua.c')
-rw-r--r--lua.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lua.c b/lua.c
index 3107a674..858a04c0 100644
--- a/lua.c
+++ b/lua.c
@@ -714,7 +714,13 @@ static void doREPL (lua_State *L) {
714/* }================================================================== */ 714/* }================================================================== */
715 715
716#if !defined(luai_openlibs) 716#if !defined(luai_openlibs)
717#define luai_openlibs(L) luaL_openselectedlibs(L, ~0, 0) 717#if defined(LUA_NODEBUGLIB)
718/* With this option, code must require the debug library before using it */
719#define luai_openlibs(L) luaL_openselectedlibs(L, ~LUA_DBLIBK, LUA_DBLIBK)
720#else
721/* The default is to open all standard libraries */
722#define luai_openlibs(L) luaL_openselectedlibs(L, ~0, 0)
723#endif
718#endif 724#endif
719 725
720 726