diff options
| author | Roberto I <roberto@inf.puc-rio.br> | 2026-04-21 15:27:22 -0300 |
|---|---|---|
| committer | Roberto I <roberto@inf.puc-rio.br> | 2026-04-21 15:27:22 -0300 |
| commit | 0c16a42d61d08266033ff63bc5dfade6312b7359 (patch) | |
| tree | b67ddc660dc7d3c7ad7b30810a7b797b8943e341 /lua.c | |
| parent | d0bd25d2e7fb393a6d0a73645a099f9c3b9cc0a8 (diff) | |
| download | lua-0c16a42d61d08266033ff63bc5dfade6312b7359.tar.gz lua-0c16a42d61d08266033ff63bc5dfade6312b7359.tar.bz2 lua-0c16a42d61d08266033ff63bc5dfade6312b7359.zip | |
Details
Added compiler option LUA_NODEBUGLIB to make Lua with no open debug
library + small improvements in the manual.
Diffstat (limited to 'lua.c')
| -rw-r--r-- | lua.c | 8 |
1 files changed, 7 insertions, 1 deletions
| @@ -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 | ||
