-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[embind] Allow raw pointers for individual arguments and return values. #25912
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
[embind] Allow raw pointers for individual arguments and return values. #25912
Conversation
Previously, allow_raw_pointer<arg<x>> mapped to allow_raw_pointers, which allowed pointers for all arguments. This PR implements the checks to verify just the specified argument or return value are allowed pointers.
|
The new tests aren't happy on my CI, but give http://clbri.com:8010/api/v2/logs/273025/raw_inline Failure happens only on Windows, not on Linux or macOS. |
Does your CI build the sysroot from clean each time? The embind headers (like all the system & libc headers) are not automatically re-installed in the sysroot each time they are changed. You would need to do I think |
Previously, allow_raw_pointer<arg> mapped to allow_raw_pointers, which allowed pointers for all arguments. This PR implements the checks to verify just the specified argument or return value are allowed pointers.