ThePhD / sol2

Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:
http://sol2.rtfd.io/
MIT License
4.06k stars 492 forks source link

Disable userdata pointer management behavior #1517

Open kem0x opened 10 months ago

kem0x commented 10 months ago

as mentioned here this is causing an issue for me as my functions return a pointer to the object in which other functions expect a direct pointer aswell, creating double pointer deref in every funciton is kinda pain, so my question here is there way to disable the usertype from wrapping the pointer?

i found a different work around by switching the return type of the function to a void* but this is not suitable aswell sadly..