CXXR (C++ R) API
Rvalgrind.h
Go to the documentation of this file.
1 /*CXXR $Id: Rvalgrind.h 749 2010-01-07 18:14:35Z arr $
2  *CXXR
3  *CXXR This file is part of CXXR, a project to refactor the R interpreter
4  *CXXR into C++. It may consist in whole or in part of program code and
5  *CXXR documentation taken from the R project itself, incorporated into
6  *CXXR CXXR (and possibly MODIFIED) under the terms of the GNU General Public
7  *CXXR Licence.
8  *CXXR
9  *CXXR CXXR is Copyright (C) 2008-10 Andrew R. Runnalls, subject to such other
10  *CXXR copyrights and copyright restrictions as may be stated below.
11  *CXXR
12  *CXXR CXXR is not part of the R project, and bugs and other issues should
13  *CXXR not be reported via r-bugs or other R project channels; instead refer
14  *CXXR to the CXXR website.
15  *CXXR */
16 
17 /*
18  * R : A Computer Language for Statistical Data Analysis
19  * Copyright (C) 1995, 1996 Robert Gentleman and Ross Ihaka
20  * Copyright (C) 1998--2007 The R Development Core Team.
21  *
22  * This program is free software; you can redistribute it and/or modify
23  * it under the terms of the GNU General Public License as published by
24  * the Free Software Foundation; either version 2 of the License, or
25  * (at your option) any later version.
26  *
27  * This program is distributed in the hope that it will be useful,
28  * but WITHOUT ANY WARRANTY; without even the implied warranty of
29  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30  * GNU General Public License for more details.
31  *
32  * You should have received a copy of the GNU Lesser General Public License
33  * along with this program; if not, a copy is available at
34  * http://www.r-project.org/Licenses/
35  */
36 
71 #ifndef RVALGRIND_H
72 #define RVALGRIND_H 1
73 
74 /* NVALGRIND trumps everything else.*/
75 #ifdef NVALGRIND
76 #undef VALGRIND_LEVEL
77 #define VALGRIND_LEVEL 0
78 #endif
79 
80 #ifndef VALGRIND_LEVEL
81 #define VALGRIND_LEVEL 0
82 #define NVALGRIND
83 #endif
84 
85 #ifdef Win32
86 # ifndef USE_VALGRIND_FOR_WINE
87 # define NVALGRIND 1
88 #endif
89 #endif
90 
91 #ifndef NVALGRIND
92 #include "memcheck.h"
93 #endif
94 
95 #endif /* RVALGRIND_H */