mirror of
https://github.com/lua/lua
synced 2026-06-08 15:34:49 +00:00
Details
Added compiler option LUA_NODEBUGLIB to make Lua with no open debug library + small improvements in the manual.
This commit is contained in:
@@ -714,7 +714,13 @@ static void doREPL (lua_State *L) {
|
||||
/* }================================================================== */
|
||||
|
||||
#if !defined(luai_openlibs)
|
||||
#define luai_openlibs(L) luaL_openselectedlibs(L, ~0, 0)
|
||||
#if defined(LUA_NODEBUGLIB)
|
||||
/* With this option, code must require the debug library before using it */
|
||||
#define luai_openlibs(L) luaL_openselectedlibs(L, ~LUA_DBLIBK, LUA_DBLIBK)
|
||||
#else
|
||||
/* The default is to open all standard libraries */
|
||||
#define luai_openlibs(L) luaL_openselectedlibs(L, ~0, 0)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user