aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/dynarr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/dynarr.h b/include/dynarr.h
index 76307e5..1cd17ab 100644
--- a/include/dynarr.h
+++ b/include/dynarr.h
@@ -5,6 +5,8 @@
#include "alloc.h"
+#define dynarr(T) struct { T *buf; size_t len, cap; }
+
#define DAGROW(da, n) \
do { \
if ((n) > (a)->cap) { \