Fork for Pacman.

Ole 3e7e718f7b docs: Make documentation more stylish 10 anos atrás
deps 09e9de10c2 tests: Include Catch as a sub-module dependency 10 anos atrás
docs 3e7e718f7b docs: Make documentation more stylish 10 anos atrás
examples bb6f4a87d3 This has been there way too long 10 anos atrás
lib 9bee181714 docs: Change parameter docs for LUWRA_WRAP_METHOD's 'fun' to 'meth' 10 anos atrás
tests 0b289a7d5b Add generic wrapping 10 anos atrás
.gitignore 3e7e718f7b docs: Make documentation more stylish 10 anos atrás
.gitmodules 09e9de10c2 tests: Include Catch as a sub-module dependency 10 anos atrás
Doxyfile 3e7e718f7b docs: Make documentation more stylish 10 anos atrás
LICENSE 8f17ec8aa8 Initial fork 10 anos atrás
Makefile 96e94577ee build: Make 'docs' target phony 10 anos atrás
README.md d1601f5d0e Update README.md 10 anos atrás

README.md

Gitter

Luwra

A header-only C++ library which provides a Lua wrapper with minimal overhead.

Usage

Refer to the wiki pages or the documentation. In order to use the library you must clone this repository and add its lib/ folder to your include path.

Have a question? Simply ask or open an issue.

Requirements

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. LuaJIT 2.0 seems to work aswell.

Tests

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. Since integers are internally stored as floating-point numbers before Lua 5.3, you might consider treating them as such in your application.