RAPI
|
00001 /* 00002 * R : A Computer Language for Statistical Data Analysis 00003 * Copyright (C) 1998-2010 The R Core Team 00004 * 00005 * This program 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 2.1 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program 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 this program; if not, a copy is available at 00017 * https://www.R-project.org/Licenses/ 00018 */ 00019 00020 /* Included by R.h: API */ 00021 00022 #ifndef R_EXT_PRINT_H_ 00023 #define R_EXT_PRINT_H_ 00024 00025 #ifdef __cplusplus 00026 /* If the vprintf interface is defined at all in C++ it may only be 00027 defined in namespace std. */ 00028 # ifdef R_USE_C99_IN_CXX 00029 # include <cstdarg> 00030 # ifdef __SUNPRO_CC 00031 using _STLP_VENDOR_CSTD::va_list; 00032 # endif 00033 # endif 00034 extern "C" { 00035 #else 00036 # include <stdarg.h> 00037 #endif 00038 00039 void Rprintf(const char * format, ...); 00040 void REprintf(const char * format, ...); 00041 #if !defined(__cplusplus) || defined R_USE_C99_IN_CXX 00042 void Rvprintf(const char * format, va_list arg); 00043 void REvprintf(const char * format, va_list arg); 00044 #endif 00045 00046 #ifdef __cplusplus 00047 } 00048 #endif 00049 00050 #endif /* R_EXT_PRINT_H_ */