med_vargs.h

Aller à la documentation de ce fichier.
00001 /* -*- mode:C; coding:utf-8 -*- */
00002 /*  This file is part of MED.
00003  *
00004  *  COPYRIGHT (C) 1999 - 2015  EDF R&D, CEA/DEN
00005  *  MED is free software: you can redistribute it and/or modify
00006  *  it under the terms of the GNU Lesser General Public License as published by
00007  *  the Free Software Foundation, either version 3 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  MED is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU Lesser General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU Lesser General Public License
00016  *  along with MED.  If not, see <http://www.gnu.org/licenses/>.
00017  */
00018 
00019 #ifndef MED_VARGS
00020 #define MED_VARGS
00021 
00022 #include "med_config.h"
00023 
00024 #ifdef PPRO_NT
00025 
00026 #define MED_VARGS_DECL(cst1,type,cst2,varname) type varname
00027 #define MED_VARGS_DEF(cst1,type,cst2,varname) varname = va_arg(params, cst1 type cst2)
00028 
00029 #elif HAVE_CC_C99 || defined(__STDC__)
00030 
00031 #define MED_VARGS_DECL(cst1,type,cst2,varname)
00032 #define MED_VARGS_DEF(cst1,type,cst2,varname) cst1 type cst2 varname = va_arg(params, cst1 type cst2)
00033 
00034 #endif
00035 
00036 #endif
00037 

Généré le Thu Oct 8 14:26:16 2015 pour MED fichier par  doxygen 1.6.1