Closed atom0s closed 1 year ago
You can do it by using multiple pure_out_value policies!
I've just written a small blog article that has an example on how to do it using policies: https://schneide.blog/2018/09/17/luabind-deboostified-tips-and-tricks/
Is there a specific way of handling custom return values / multiple return values with this version of luabind? So far this appears safe, but I want to double check that I'm not missing a policy or specific method of doing this:
This all seems to work fine, the stack appears to be valid and not stale with left over values etc. but I couldn't find any info in the docs around the net for Luabind on how to handle multiple values or custom pushing like this. Generally I'm used to using luabind::object as the return, something like:
But I don't think there is any proper way to return multiple values with the object.