Commit dba58dee authored by Niels Möller's avatar Niels Möller
Browse files

Added NEW() macro.

Rev: src/xalloc.h:1.6
parent c225407b
......@@ -30,6 +30,7 @@
#include "lsh_types.h"
void *xalloc(size_t size);
#define NEW(x) ((x) = xalloc(sizeof(*(x))))
/* Allocation */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment