diff options
| author | Lennart Poettering <lennart@poettering.net> | 2009-05-07 22:03:04 +0200 | 
|---|---|---|
| committer | Lennart Poettering <lennart@poettering.net> | 2009-05-08 02:04:33 +0200 | 
| commit | 92a61418882a68e913d2a40ae28e815a68c456f8 (patch) | |
| tree | f9e09cda8685746bf268575967dac93599b82ef9 /src | |
| parent | e0f08219bb6b5ed9fd92623997074410051ed671 (diff) | |
macro: add macros for initializing memory
Diffstat (limited to 'src')
| -rw-r--r-- | src/pulsecore/macro.h | 3 | 
1 files changed, 3 insertions, 0 deletions
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 <pulsecore/log.h>  | 
