forked from ctypesgen/ctypesgen
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revisit non-primitive return type in callback #20
Comments
mara004
changed the title
Non-primitive return type in callback revisited
Revisit non-primitive return type in callback
Jan 19, 2025
Note, historically, the That's not relevant anymore, but it hints that templates tend to be wonky, which is part of the reason why I'd prefer to avoid them... |
OK, I think I added back a corrected verison of the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In retrospect, I think remapping a non-primitive pointer type to
c_void_p
, as theUNCHECKED()
wrapper did, actually seems right. I probably was subject to a misunderstanding back then.However, it would be great if we could do this directly at bindings construction time, rather than through a runtime wrapper in the bindings.
Also, a real-world example would be great for testing.
The text was updated successfully, but these errors were encountered: