macro: add macros for initializing memory

This commit is contained in:
Lennart Poettering 2009-05-07 22:03:04 +02:00
parent e0f08219bb
commit 92a6141888

View file

@ -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>