Skip to content
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

allow to use z_move, z_loan etc with pointers #599

Draft
wants to merge 113 commits into
base: main
Choose a base branch
from

Conversation

milyin
Copy link
Contributor

@milyin milyin commented Aug 17, 2024

  • allowed to use macros "z_move", "z_loan", etc both with value and pointer. This is necessary if user want to use e.g. z_loan macro with const z_owned_xxx_t* p value:
void foo(const z_owned_xxx_t* v) {
   z_xxx_read(z_loan(v)); // z_loan accepts pointer, no need to write "z_loan(*v)"
}

@milyin milyin changed the title Moved as ptr merge main allow to use z_move, z_loan etc with pointers Aug 17, 2024
Base automatically changed from moved_as_ptr to dev/1.0.0 August 19, 2024 08:38
@milyin milyin changed the base branch from dev/1.0.0 to main September 11, 2024 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants