lua: proxy -j and -b flags
There are two flags in the LuaJIT useful for debugging and runtime configuration purposes: `-j` and `-b`. However, if you want to check the same Lua code from the Tarantool, you will need to make some adjustments in the script itself, as those flags are not present in the Tarantool's CLI. This patch introduces those flags to the Tarantool, so debugging is much more convenient now. Flags are working the same as they do in the LuaJIT. Closes #5541 NO_DOC=http://luajit.org/running.html#opt_b NO_DOC=http://luajit.org/running.html#opt_j
Showing
- changelogs/unreleased/gh-5541-proxy-luajit-flags.md 5 additions, 0 deletionschangelogs/unreleased/gh-5541-proxy-luajit-flags.md
- src/CMakeLists.txt 2 additions, 0 deletionssrc/CMakeLists.txt
- src/lua/dobytecode.lua 16 additions, 0 deletionssrc/lua/dobytecode.lua
- src/lua/dojitcmd.lua 38 additions, 0 deletionssrc/lua/dojitcmd.lua
- src/lua/init.c 45 additions, 6 deletionssrc/lua/init.c
- src/lua/init.h 4 additions, 1 deletionsrc/lua/init.h
- src/main.cc 36 additions, 8 deletionssrc/main.cc
- test/box-py/args.result 29 additions, 0 deletionstest/box-py/args.result
- test/box-py/args.test.py 12 additions, 0 deletionstest/box-py/args.test.py
Loading
Please register or sign in to comment