|
|
лет назад: 10 | |
|---|---|---|
| examples | лет назад: 10 | |
| lib | лет назад: 10 | |
| tests | лет назад: 10 | |
| .gitignore | лет назад: 10 | |
| LICENSE | лет назад: 10 | |
| Makefile | лет назад: 10 | |
| README.md | лет назад: 10 |
A header-only C++ library which provides a Lua wrapper with minimal overhead.
Refer to the wiki pages. In order to use the library
you must clone this repository and add its lib/ folder to your include path.
You need a C++14-compliant compiler and at least Lua 5.1 to get this library to work. I recommend
using Lua 5.3 or later, to avoid the messy lua_Integer situation.
The attached GNU Makefile allows you to run both examples and tests using make examples and
make test respectively. You might need to adjust LUA_* variables, so Luwra finds the
Lua headers and library.
Assuming all headers are located in /usr/include/lua5.3 and the shared object name is
liblua5.3.so, you need to invoke this:
make LUA_INCDIR=/usr/include/lua5.3 LUA_LIBNAME=lua5.3 test
* Assertions relying on lua_Integer will fail, due to integer quirks in Lua. This
should only concern you if your application expects Lua integers to work like normal integers,
because they don't.