Steve K. Chiu

Results 15 comments of Steve K. Chiu

I have tried the patch but the result is the same. If re-record is needed or I call renderer.invalidate(), then it works.

It seems normal. null is special, assign null to table will not create the entry. try err, desc = lfb.test_to_str(true) to get the first arg.

You can not add function with ... argument directly, there is no such binding for LuaIntf. You can, however, implement `CFunction` like function to access lua stack, and having unlimited...

Assume you already have success with std::shared_ptr for other function, the best way to pass std::shared_ptr to lua function from c++ is via: 1. LuaRef::fromValue 2. or Lua::push 3. or...

lua-intf should be relative light-weight, if you need better performance: 1. do not use inheritance with lua-intf 2. do not use STL wrapper 3. profile the calls, and find out...

You need to manually register the class with the `LuaBinding(L).beginClass("myClass")`, see the readme for example. The lib is headers-only by default, you only need to include "LuaIntf.h" it in your...

Just like I said, it is headers-only. All you have to do is add the following line in your cpp file: ```` #include "LuaIntf/LuaIntf.h" ```` However, you still need to...

Not sure about how you use the lua, do you plan to embed lua into you app? or do you plan to create lua module? Either way, there is no...

LuaIntf::Lua::getGlobal(L, "objecttest") would be fine

Please see the readme: https://github.com/SteveKChiu/lua-intf#integrate-with-lua-module-system