forked from MariaDB/server
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fully generic sysvar implementations #5
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think I actually came up with a way to make sysvar implementations fully generic using struct update syntax. Proof:
The proc macro would create something like
TEST
. Just needs to detect string literals and convert them to c strings, and keep a map of field mappings.To keep safety, 1. this trait needs to be marked unsafe and 2. our proc macro should check and reject raw pointer
The text was updated successfully, but these errors were encountered: