1 /*
2  *  R : A Computer Language for Statistical Data Analysis
3  *  Copyright (C) 1998-2005   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_ERROR_H_
27 #define R_ERROR_H_
28 
29 #ifdef  __cplusplus
30 extern "C" {
31 #endif
32 
33 #if defined(__GNUC__) && __GNUC__ >= 3
34 #define NORET __attribute__((noreturn))
35 #else
36 #define NORET
37 #endif
38 
39 void NORET Rf_error(const char *, ...);
40 void NORET UNIMPLEMENTED(const char *);
41 void NORET WrongArgCount(const char *);
42 
43 void	Rf_warning(const char *, ...);
44 void 	R_ShowMessage(const char *s);
45 
46 
47 #ifdef  __cplusplus
48 }
49 #endif
50 
51 #ifndef R_NO_REMAP
52 #define error Rf_error
53 #define warning Rf_warning
54 #endif
55 
56 
57 #endif /* R_ERROR_H_ */
58