mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
macro: add macros for initializing memory
This commit is contained in:
parent
e0f08219bb
commit
92a6141888
1 changed files with 3 additions and 0 deletions
|
|
@ -261,6 +261,9 @@ typedef int pa_bool_t;
|
|||
#define PA_DEBUG_TRAP raise(SIGTRAP)
|
||||
#endif
|
||||
|
||||
#define pa_memzero(x,l) (memset((x), 0, (l)))
|
||||
#define pa_zero(x) (pa_memzero(&(x), sizeof(x)))
|
||||
|
||||
/* We include this at the very last place */
|
||||
#include <pulsecore/log.h>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue