summaryrefslogtreecommitdiff
path: root/array.h
diff options
context:
space:
mode:
Diffstat (limited to 'array.h')
-rw-r--r--array.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/array.h b/array.h
index 0889f23..0afbdc9 100644
--- a/array.h
+++ b/array.h
@@ -31,4 +31,7 @@ void array_cats0(array* to,const char* from);
void array_cat0(array* to);
void array_cate(array* to,const array* const from,int64 pos,int64 stop);
+#define array_failed(x) (array_bytes(x)==-1)
+#define array_allocated(x) (array_bytes(x)==0)
+
#endif