-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can addFunction support lambda? #245
Comments
This is fully supported in https://github.com/kunitoki/LuaBridge3 |
OK, once kunitoki's fork is fully compatible with the LuaBridge2, anybody can switch to the LuaBridge3. |
It's not fully compatible, i made some design decisions that were needed to support using the library without exceptions (games you know, game developers are allergic to exceptions), so some stuff has changed. There is a long list of breaking changes and removals. See https://kunitoki.github.io/LuaBridge3/CHANGES |
I see. And I'd prefer C++17 :) Most of code including older compiler support and e.g. BTW the most unpleasant thing for one who wants to migrate from the LB2 to the LB3 is a different stack push signature. I guess this can be simplified by adding support for methods with the old signature using a meta-programming trick. |
I want to polish the library, i'm seeking of removing legacy. If one wants addData can work with the older lb2. |
Yeah for the stack changes, i might introduce more changes, like rolling an own expected as return value http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0323r8.html |
I want to pass some local variables from C++ to lua, but these variables can only be global variables.
This is what I want
./test.lua
like thisWhat should I do to pass C++ local variables to Lua, and then get it from lua? Thank you very much
The text was updated successfully, but these errors were encountered: