DisLua is a header-only library that allows you to parse and rewrite the bytecode of compiled Lua scripts. At the moment, the library supports the LuaJIT compiler and a parser for luac v5.4 is being developed (branch luac).
- Luad - Disassembler for compiled Lua scripts.
You can build Doxygen documentation:
- Using CMake specifying the
DISLUA_DOCSoption:
$ cmake .. -DDISLUA_DOCS=ON -B build
$ cd build
$ cmake --build . --target doc- Manually using the command
doxygen.
You can test the library using CTest specifying the DISLUA_TESTS option:
$ cmake .. -DDISLUA_TESTS=ON -B build
$ cd build
$ cmake --build .
$ ctestInstall the library using CMake (DISLUA_INSTALL option is enabled by default):
$ cmake .. -B build
$ cd build
$ cmake --build . --target installAdd dislua to your CMake-project by using:
find_package(dislua REQUIRED)
target_link_libraries(yourproject PRIVATE dislua)