X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=gcc-compat.h;h=5d207288359f5b9151c6ca55ab54d00b4669b533;hp=ba1d82ead77ac6ae937a15a4e691ba8afc2f21b2;hb=f0e41e36c3f1a3a5bb6ff66d92d2814391d8f908;hpb=3923f936294f9f900dc8c6a1c0fe84f0e2852dca diff --git a/gcc-compat.h b/gcc-compat.h index ba1d82ea..5d207288 100644 --- a/gcc-compat.h +++ b/gcc-compat.h @@ -5,15 +5,18 @@ #define __a_aligned(alignment) __attribute__((__aligned__(alignment))) /* - * p is the number of the "format string" parameter, and q is - * the number of the first variadic parameter. + * p is the number of the "format string" parameter, and q is the number of the + * first variadic parameter. If q is specified as zero, the compiler only + * checks the format string for consistency. */ # define __printf(p,q) __attribute__ ((format (printf, p, q))) # define __a_const __attribute__ ((const)) + /* - * as direct use of __printf(p,q) confuses doxygen, here are two extra macros - * for those values p,q that are actually used by paraslash. + * As direct use of __printf(p,q) confuses doxygen, here are some extra macros + * for those values p,q that are actually used. */ +#define __printf_2_0 __printf(2,0) #define __printf_1_2 __printf(1,2) #define __printf_2_3 __printf(2,3)