LuaBridge
LuaBridge copied to clipboard
A lightweight, dependency-free library for binding Lua to C++
Lua GC erroneously (?) deletes an object when Lua still holds a reference on it obtained through a chain of method calls. E. g.: ```c++ #include #include #include struct A...
when the return type is void*, addFunction will compile fail in push: ```cpp template struct StackOpSelector { using ReturnType = TypeResult; static Result push(lua_State* L, const T* value) { return...
I just spent the better part of a day trying to figure out why a proxy method I had added to a class was not there on some instances of...
This fix only adds the /MP parameter to Visual Studio compilers instead of adding it to all compilers under Windows. Without this change the build in a MSYS2 environment with...
This fix prevents a segmentation fault in case a C++ function is called from Lua and nil instead of an object of a registered class is passed as parameter. -...
**Environment** - Windows 10 x64 - Visual Studio 2022 14.34.31937 toolchain - Using latest LuaBridge commit from master branch [9092ace] - Lua 5.4.4 **Steps to reproduce** - Expose a C++...
[From LuaBridge documentation:](http://vinniefalco.github.io/LuaBridge/Manual.html#s5) > Metatables have __metatable set to a boolean value. Scripts cannot obtain the metatable from a LuaBridge object. According to [Lua docuemtation](https://www.lua.org/pil/13.3.html) the field must be set...
on i386 32-bit openbsd with luabridge https://github.com/vinniefalco/LuaBridge/commit/9092ace9615d14e3f5926f2e8a3b612ddc6c8efa I get a compilation error when trying to addFunction with a function that uses attribute fastcall. Removing fastcall allows the program to compile....
This is a followup to #293, which I have closed because it does not accurately describe the issue. I would like to throw an error out of c++ and have...
Ok so I'm a student and trying to make a basic game that can be custom coded using lua and I'm using luabridge and i have a custom class that...