You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: