mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-14 06:59:57 -05:00
array: add multistatement macro in parenthesis
This commit is contained in:
parent
0d87b32f0e
commit
6cf6af6620
1 changed files with 3 additions and 2 deletions
|
|
@ -70,10 +70,11 @@ struct pw_array {
|
|||
(pos)++)
|
||||
|
||||
#define pw_array_remove(a,p) \
|
||||
({ \
|
||||
(a)->size -= sizeof(*(p)); \
|
||||
memmove(p, SPA_MEMBER((p), sizeof(*(p)), void), \
|
||||
SPA_PTRDIFF(pw_array_end(a),(p)));
|
||||
|
||||
SPA_PTRDIFF(pw_array_end(a),(p))); \
|
||||
})
|
||||
|
||||
/** Initialize the array with given extend \memberof pw_array */
|
||||
static inline void pw_array_init(struct pw_array *arr, size_t extend)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue