04-15-2015, 09:40 AM
I suspect that tolua can be patched to generate the bindings automatically, if we wrote the appropriate support code. What the code you've written does in each case is hide the pointer to pointer. With a template we can generate the wrapper classes automatically.
However we need to be careful with the DoWithXYZ objects as a lot of them are about locks, a concept which lua does not express well.
However we need to be careful with the DoWithXYZ objects as a lot of them are about locks, a concept which lua does not express well.