RAPI
R_ext/Error.h
Go to the documentation of this file.
00001 /*
00002  *  R : A Computer Language for Statistical Data Analysis
00003  *  Copyright (C) 1998-2005   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_ERROR_H_
00023 #define R_ERROR_H_
00024 
00025 #ifdef  __cplusplus
00026 extern "C" {
00027 #endif
00028 
00029 #if defined(__GNUC__) && __GNUC__ >= 3
00030 #define NORET __attribute__((noreturn))
00031 #else
00032 #define NORET
00033 #endif
00034 
00035 void NORET Rf_error(const char * format, ...);
00036 void NORET UNIMPLEMENTED(const char * s);
00037 void NORET WrongArgCount(const char *);
00038 
00039 void    Rf_warning(const char * format, ...);
00040 void    R_ShowMessage(const char *s);
00041     
00042 
00043 #ifdef  __cplusplus
00044 }
00045 #endif
00046 
00047 #ifndef R_NO_REMAP
00048 #define error Rf_error
00049 #define warning Rf_warning
00050 #endif
00051 
00052 
00053 #endif /* R_ERROR_H_ */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines