Skip to content
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

Get c++ object instnce from lua #78

Open
evangelist88 opened this issue May 25, 2017 · 1 comment
Open

Get c++ object instnce from lua #78

evangelist88 opened this issue May 25, 2017 · 1 comment
Labels

Comments

@evangelist88
Copy link

Hi all,

how can I get a c++ object instance from lua without call a "new" inside lua script?

In other words, I need to get a lua object from c++ code and viceversa.

Someone could help me

Thanks a lot

@Tomasu
Copy link
Owner

Tomasu commented May 25, 2017

you can pass C++ objects into lua easily. If the method or function you bind to lua takes an object, it'll bind it properly. there are plenty of examples in the examples folder. If you could share a more concrete example of what you want to do I can help further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants