Error: "unregistered type expected" when using references and pointers while calling a Lua bound method.
malhotraprateek opened this issue · 0 comments
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.