luaaa icon indicating copy to clipboard operation
luaaa copied to clipboard

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

Results 8 luaaa issues
Sort by recently updated
recently updated
newest added

```c++ class MyClass { public: MyClass(lua_State* l) { luaL_error(l, "first constructor called"); } MyClass(lua_State* l, int x) { if (x > 100) { luaL_error(l, "oops, X too large!"); } }...

When using the class binding functions, it appears that once a class has been bound to a lua_State, another lua_State cannot also have access to the given class while the...

Using gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) on centos 7 the compliler complains about missing typename. Adding typename where the compiler suggests fixes the issue and allows the...

I have a C++DLL file that I want to register the get type function to the Lua virtual machine. However, the get method needs to return the function execution value...

Hey, i'm trying to build a lua interface around a c++ header only library. the library consists of a derived and virtual classes. i stumbled on the error: cannot convert...

It looks like C++ `Cat` constructor should accept `std::string` (or `std::string &`) https://github.com/gengyong/luaaa/blob/6613132cb0859a8e288eeaffec9f9e638b834cd2/README.md?plain=1#L31-L35

```lua -- this is example.lua function onMessage(obj) print('===========', obj:getName()) end ``` ``` cpp // this is cat.h #pragma once #include #include class Cat { public: Cat(const std::string& name) : m_name(name)...

I'm currently working with Raylib which is written in C. It relies on the developer to manually unload resources. In the example of Texture2d, I would like to define __gc...