KVIrc  4.9.2
DeveloperAPIs
kvi_stdarg.h
Go to the documentation of this file.
1 #ifndef _KVI_STDARG_H_
2 #define _KVI_STDARG_H_
3 
4 //=============================================================================
5 //
6 // File : kvi_stdarg.h
7 // Creation date : Sat Jan 03 2004 02:08:14 CEST by Szymon Stefanek
8 //
9 // This file is part of the KVIrc IRC client distribution
10 // Copyright (C) 2004-2010 Szymon Stefanek (pragma at kvirc dot net)
11 //
12 // This program is FREE software. You can redistribute it and/or
13 // modify it under the terms of the GNU General Public License
14 // as published by the Free Software Foundation; either version 2
15 // of the License, or (at your option) any later version.
16 //
17 // This program is distributed in the HOPE that it will be USEFUL,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20 // See the GNU General Public License for more details.
21 //
22 // You should have received a copy of the GNU General Public License
23 // along with this program. If not, write to the Free Software Foundation,
24 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 //
26 //=============================================================================
27 
28 #include "kvi_settings.h"
29 #include <stdarg.h>
30 
31 #define kvi_va_list va_list
32 #define kvi_va_start va_start
33 #define kvi_va_arg va_arg
34 #define kvi_va_end va_end
35 
36 #ifdef va_copy
37 #define kvi_va_copy(a, b) va_copy(a, b)
38 #elif defined(__va_copy)
39 #define kvi_va_copy(a, b) __va_copy(a, b)
40 #else
41 #define kvi_va_copy(a, b) ((a) = (b))
42 #endif
43 
44 #endif //_KVI_STDARG_H_
This file contains compile time settings.