Questions tagged [luabridge]

LuaBridge is a lightweight, dependency-free library for mapping data, functions, and classes between C++ and Lua.

LuaBridge is a lightweight C++ library that has no external dependencies. Its purpose is to make it easy to expose C++ functions and classes to Lua. LuaBridge has been tested and works with Lua revisions starting from 5.1.5, although it should work in any version of Lua from 5.1.0 as well as LuaJit.

64 questions
0
votes
1 answer

LuaBridge assertion error

I've been going through some tutorials around luabridge for accessing c++ from lua but I've hit a problem I can't seem to find an answer to by searching google. I've setup a sample program to run the script and access lua from c++, which works fine.…
Linuxxon
  • 411
  • 1
  • 3
  • 14
0
votes
2 answers

luabridge class object inside class

weird problem I have a program that uses multiple classes some of these classes are used to define objects inside of other class but I can't modify their values not sure if that made sense but I'll try and demonstrate C++ file class A{ public: …
user2943571
0
votes
1 answer

Luabridge: heap corruption (_CrtIsValidHeapPointer) on remove

Edit #3: My engine is setup in the following manner: struct Engine { GetEngine()....//Singleton; std::vector> DisplayObjects; }; Then I write a few lua interfaces in the following manner: struct LuaObject { …
Grapes
  • 2,473
  • 3
  • 26
  • 42
0
votes
2 answers

Using LuaBridge with pointers to built-in types

Let's consider the following C function : void returnMultipleValuesByPointer(int* ret0, int* ret1, int* ret2) { *ret0 = 0; *ret1 = 1; *ret2 = 2; } How to I expose it in Lua using LuaBridge ? All the documentation and examples illustrate…
docdocdoc9
  • 138
  • 5
1 2 3 4
5