summaryrefslogtreecommitdiff
path: root/lib/alloca.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/alloca.h')
-rw-r--r--lib/alloca.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/alloca.h b/lib/alloca.h
index f0d61bb4..e5557cdb 100644
--- a/lib/alloca.h
+++ b/lib/alloca.h
@@ -15,4 +15,6 @@
#include <stdlib.h>
#endif
+#define allocz(len) ({ void *_x = alloca(len); memset(_x, 0, len); _x; })
+
#endif