We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I.e instead of #define _Z_OWNED_TYPE_PTR(type, name) typedef struct { type *_val; } z_owned_##name##_t;
#define _Z_OWNED_TYPE_PTR(type, name) typedef struct { type *_val; } z_owned_##name##_t;
consider using
#define _Z_OWNED_TYPE_PTR(type, name) typedef struct { type _val; } z_owned_##name##_t;
This would allow unifying layout of owned/loaned objects (which is very desirable for cpp) and also greatly reduce amount of malloc calls.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the release item
I.e instead of
#define _Z_OWNED_TYPE_PTR(type, name) typedef struct { type *_val; } z_owned_##name##_t;
consider using
#define _Z_OWNED_TYPE_PTR(type, name) typedef struct { type _val; } z_owned_##name##_t;
This would allow unifying layout of owned/loaned objects (which is very desirable for cpp) and also greatly reduce amount of malloc calls.
The text was updated successfully, but these errors were encountered: