rework input logic to allow parsing from strings
[cparser] / adt / util.h
index 61c3c7d..54dfc83 100644 (file)
@@ -52,4 +52,6 @@
 
 #define lengthof(x) (sizeof(x) / sizeof(*(x)))
 
+#define endof(x) ((x) + lengthof(x))
+
 #endif