Statistics
| Revision:

root / tmp / org.txm.statsengine.r.core.win32 / res / win32 / include / R_ext / Error.h @ 2486

History | View | Annotate | Download (1.5 kB)

1
/*
2
 *  R : A Computer Language for Statistical Data Analysis
3
 *  Copyright (C) 1998-2005   The R Core Team
4
 *
5
 *  This program 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 program is distributed in the hope that it will be useful,
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 *  GNU Lesser General Public License for more details.
14
 *
15
 *  You should have received a copy of the GNU Lesser General Public License
16
 *  along with this program; if not, a copy is available at
17
 *  http://www.r-project.org/Licenses/
18
 */
19

    
20
/* Included by R.h: API */
21

    
22
#ifndef R_ERROR_H_
23
#define R_ERROR_H_
24

    
25
#ifdef  __cplusplus
26
extern "C" {
27
#endif
28

    
29
/* valid from gcc 2.95.3, at least.
30
   Suggested by Anton Korobeynikov.
31
 */
32
#if defined(__GNUC__) && __GNUC__ >= 3
33
void Rf_error(const char *, ...) __attribute__((noreturn));
34
void UNIMPLEMENTED(const char *) __attribute__((noreturn));
35
void WrongArgCount(const char *) __attribute__((noreturn));
36
#else
37
void Rf_error(const char *, ...);
38
void UNIMPLEMENTED(const char *);
39
void WrongArgCount(const char *);
40
#endif
41

    
42
void        Rf_warning(const char *, ...);
43
void         R_ShowMessage(const char *s);
44
    
45

    
46
#ifdef  __cplusplus
47
}
48
#endif
49

    
50
#ifndef R_NO_REMAP
51
#define error Rf_error
52
#define warning Rf_warning
53
#endif
54

    
55

    
56
#endif /* R_ERROR_H_ */