From 92a61418882a68e913d2a40ae28e815a68c456f8 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 7 May 2009 22:03:04 +0200 Subject: macro: add macros for initializing memory --- src/pulsecore/macro.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/pulsecore/macro.h') diff --git a/src/pulsecore/macro.h b/src/pulsecore/macro.h index 73438e64..e9888c30 100644 --- a/src/pulsecore/macro.h +++ b/src/pulsecore/macro.h @@ -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 -- cgit