1 /*
2  *  R : A Computer Language for Statistical Data Analysis
3  *  Copyright (C) 1998-2016    The R Core Team
4  *
5  *  This header file is free software; you can redistribute it and/or modify
6  *  it under the terms of the GNU Lesser General Public License as published by
7  *  the Free Software Foundation; either version 2.1 of the License, or
8  *  (at your option) any later version.
9  *
10  *  This file is part of R. R is distributed under the terms of the
11  *  GNU General Public License, either Version 2, June 1991 or Version 3,
12  *  June 2007. See doc/COPYRIGHTS for details of the copyright status of R.
13  *
14  *  This program is distributed in the hope that it will be useful,
15  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  *  GNU Lesser General Public License for more details.
18  *
19  *  You should have received a copy of the GNU Lesser General Public License
20  *  along with this program; if not, a copy is available at
21  *  https://www.R-project.org/Licenses/
22  */
23 
24 /* Included by R.h: API */
25 
26 #ifndef R_EXT_PRINT_H_
27 #define R_EXT_PRINT_H_
28 
29 #ifdef  __cplusplus
30 /* If the vprintf interface is defined at all in C++ it may only be
31    defined in namespace std.  It is part of the C++11 standard. */
32 # ifdef R_USE_C99_IN_CXX
33 #  include <cstdarg>
34 #  define R_VA_LIST std::va_list
35 # endif
36 extern "C" {
37 #else
38 # include <stdarg.h>
39 # define R_VA_LIST va_list
40 #endif
41 
42 void Rprintf(const char *, ...);
43 void REprintf(const char *, ...);
44 #if !defined(__cplusplus) || defined R_USE_C99_IN_CXX
45 void Rvprintf(const char *, R_VA_LIST);
46 void REvprintf(const char *, R_VA_LIST);
47 #endif
48 
49 #ifdef  __cplusplus
50 }
51 #endif
52 
53 #endif /* R_EXT_PRINT_H_ */
54