X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=adt%2Futil.h;h=54dfc83d96619e0c8b3f55446ec3e98f4e0e9595;hb=f7f1fcc7021a3c622316b6415c16f83d0a64ae4a;hp=61c3c7def043e682ff71b24019fbcae2318bc69a;hpb=fbbb2b6932bdd8455b850b750d93b4d5584402a7;p=cparser diff --git a/adt/util.h b/adt/util.h index 61c3c7d..54dfc83 100644 --- a/adt/util.h +++ b/adt/util.h @@ -52,4 +52,6 @@ #define lengthof(x) (sizeof(x) / sizeof(*(x))) +#define endof(x) ((x) + lengthof(x)) + #endif