mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
Fix some badly-behaved macros
Some macros evaluated their arguments more than once when it was not needed, or were missing parentheses.
This commit is contained in:
parent
bb4f274ae0
commit
671a7102ff
46 changed files with 162 additions and 156 deletions
|
|
@ -140,9 +140,9 @@ struct pw_client_node0_message_port_reuse_buffer {
|
|||
|
||||
#define PW_CLIENT_NODE0_MESSAGE_TYPE(message) (((struct pw_client_node0_message*)(message))->body.type.value)
|
||||
|
||||
#define PW_CLIENT_NODE0_MESSAGE_INIT(message) (struct pw_client_node0_message) \
|
||||
#define PW_CLIENT_NODE0_MESSAGE_INIT(message) ((struct pw_client_node0_message) \
|
||||
{ { { sizeof(struct pw_client_node0_message_body), SPA_TYPE_Struct } }, \
|
||||
{ SPA_POD_INIT_Int(message) } }
|
||||
{ SPA_POD_INIT_Int(message) } })
|
||||
|
||||
#define PW_CLIENT_NODE0_MESSAGE_INIT_FULL(type,size,message,...) (type) \
|
||||
{ { { size, SPA_TYPE_Struct } }, \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue