Skip to content

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.

4 participants