Add macro so application code can more easily _not_ access iterator reserved parameters.
authorWilfried Goesgens <willi@arangodb.com>
Sun, 11 Oct 2015 11:51:24 +0000 (13:51 +0200)
committerWilfried Goesgens <willi@arangodb.com>
Sun, 11 Oct 2015 11:51:24 +0000 (13:51 +0200)
webcit/subst.h

index d80c97f5275e63747c1bea721d3b78d231f498c9..063f46d211e0883fe2be28a773943f4fd83b661a 100644 (file)
@@ -362,6 +362,7 @@ long GetTokenDefine(const char *Name,
 
 #define IT_NOFLAG 0
 #define IT_FLAG_DETECT_GROUPCHANGE (1<<0)
+#define IT_ADDT_PARAM(n) 5 + n /* If you have AdditionalParams, use this macro to fetch them. */
 #define RegisterIterator(a, b, c, d, e, f, g, h, i) RegisterITERATOR(a, sizeof(a)-1, b, c, d, e, f, NULL, g, h, i)
 #define RegisterFilteredIterator(a, b, c, d, e, f, g, h, i, j) RegisterITERATOR(a, sizeof(a)-1, b, c, d, e, f, g, h, i, j)
 void RegisterITERATOR(const char *Name, long len, /* Our identifier */