-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
Add rz_vector_assign_at() #4373
Conversation
* | ||
* \return The pointer stored at \p index before. Or NULL in case of failure. | ||
*/ | ||
RZ_API void *rz_pvector_assign_at(RZ_BORROW RZ_NONNULL RzPVector *vec, size_t index, RZ_OWN RZ_NONNULL void *ptr) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why you need this when rz_pvector_set
is available?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rz_pvector_set
is private. My thinking was, that it is better to have an equivalent function to the normal rz_vector_assign_at
. So we don't mix up names with function between RzVector
and RzPVector
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, it's an inline within the headers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something is wrong with this week -.-
Yeah, it is not necessary to add it than. rz_pvector_get
and rz_pvector_set
is good enough. Let me close this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
Your checklist for this pull request
Detailed description
Adds a
rz_vector_assign_at()
function.Test plan
Added.
Closing issues
...