X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common-src%2Farglist.h;h=e18b4a79e5fb485096d33f0b6db03f5d98e53fee;hb=12179dea039515c06168c0037d048566a3f623de;hp=1c87202cda094d6697c0d9bd8607691273584140;hpb=94c03cae686e4196a345d72452fda2a5203768ce;p=debian%2Famanda diff --git a/common-src/arglist.h b/common-src/arglist.h index 1c87202..e18b4a7 100644 --- a/common-src/arglist.h +++ b/common-src/arglist.h @@ -24,7 +24,7 @@ * file named AUTHORS, in the root directory of this distribution. */ /* - * $Id: arglist.h,v 1.7 2002/12/03 21:36:39 martinea Exp $ + * $Id: arglist.h,v 1.9 2006/06/16 11:33:43 martinea Exp $ * * support macros for variable argument list declaration and definition */ @@ -57,6 +57,17 @@ arg2_type arg2_name, \ hook_type hook_name, ...) +#define printf_arglist_function3(fdecl, \ + arg1_type, arg1_name, \ + arg2_type, arg2_name, \ + arg3_type, arg3_name, \ + hook_type, hook_name) \ + __attribute__ ((format (printf, 4, 0))) \ + fdecl(arg1_type arg1_name, \ + arg2_type arg2_name, \ + arg3_type arg3_name, \ + hook_type hook_name, ...) + #define arglist_function(fdecl, \ hook_type, hook_name) \ fdecl(hook_type hook_name, ...)