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

Error: "unregistered type expected" when using references and pointers while calling a Lua bound method. #171

Open
malhotraprateek opened this issue Jan 13, 2017 · 0 comments

Comments

@malhotraprateek
Copy link

Hi,
I am using Selene to get my C++ project talking to Lua.
I am trying to pass objects by reference & pointers from C++ runtime into Lua and then back.

Here is a gist of the problem I have been able to replicate.

When I try to use SetClass one one of the Dummy classes and then call the Lua-bound method, it throws a 'unregistered type expected' exception. For 'Dummy2' reference it tells me that it is expecting 'Dummy1_lib' instead and vice versa.

I have been trying to get to the root of the problem to no avail..

Could someone please tell me if I am doing something silly here?
How can I use SetClass on my classes and also be able to send their pointers/references to Lua methods and back? Is it even possible to do both?

Thanks,
Prateek.

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

No branches or pull requests

1 participant