X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=adt%2Futil.h;h=eb7fe64d78586898a654b3a2028ddbd354fa7bf6;hb=776944099aee0467915e9ea4f3c2f3f10f742aaa;hp=61c3c7def043e682ff71b24019fbcae2318bc69a;hpb=fbbb2b6932bdd8455b850b750d93b4d5584402a7;p=cparser diff --git a/adt/util.h b/adt/util.h index 61c3c7d..eb7fe64 100644 --- a/adt/util.h +++ b/adt/util.h @@ -23,7 +23,6 @@ * @date 16.03.2007 * @brief Various utility functions that wrap compiler specific extensions * @author Matthias Braun - * @version $Id$ */ #ifndef _FIRM_UTIL_H_ #define _FIRM_UTIL_H_ @@ -52,4 +51,6 @@ #define lengthof(x) (sizeof(x) / sizeof(*(x))) +#define endof(x) ((x) + lengthof(x)) + #endif