Luaaa Versions Save

C++ to LUA binding tool in a single header file.

v1.4

1 month ago

new feature: export properties.

v1.3

4 months ago

support std::tuple now so we can return multiple values from c++ to Lua likes below.

void func1(const std::tuple<int, float, std::string>& args) {
    // do some things here ...
}

auto func2() {
    return std::make_tuple(123, "string A", "string B", 0.123f);
}

LuaModule testMod(L, "TestMod");
testMod.fun("modFunc1", func1);
testMod.fun("modFunc2", func2);

in Lua:

TestMod.modFunc1(1, 1.2, "from lua to c")

local values = TestMod.modFunc2()
print("Lua got multiple values from c++:")
for i = 1, #values do 
    print("[" .. i .. "]" .. values[i]) 
end

v1.2

5 months ago

fix gcc compile error on v1.1

v1.1

7 months ago

fix GC bugs.

v1.0

7 months ago

fix bugs. a stable release.

v0.2.3

2 years ago

new feature: make exported lua class extendable.

v0.2.2

2 years ago

add new feature: export lambdas.

v0.2.1

2 years ago
  1. Customizable Lua class ctor/gc behavior, static/global function can be exported as Lua ctor.
  2. Add macro 'LUAAA_WITHOUT_CPP_STDLIB' to disable STL for embedded device.

v0.1

5 years ago

Initialize version.

  • works with lua 5.1, lua 5.2 and lua 5.3.
  • C++11 required.