Rcpp Version 1.0.9
print.h
Go to the documentation of this file.
1 // -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*-
2 //
3 // Copyright (C) 2015 - 2016 Dirk Eddelbuettel
4 //
5 // This file is part of Rcpp.
6 //
7 // Rcpp is free software: you can redistribute it and/or modify it
8 // under the terms of the GNU General Public License as published by
9 // the Free Software Foundation, either version 2 of the License, or
10 // (at your option) any later version.
11 //
12 // Rcpp is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with Rcpp. If not, see <http://www.gnu.org/licenses/>.
19 
20 #ifndef RCPP_PRINT_H
21 #define RCPP_PRINT_H
22 
23 namespace Rcpp {
24 
25 inline void print(SEXP s) {
26  Rf_PrintValue(s); // defined in Rinternals.h
27 }
28 
29 inline void warningcall(SEXP call, const std::string & s) {
30  Rf_warningcall(call, s.c_str());
31 }
32 
33 // also note that warning() is defined in file exceptions.h
34 
35 }
36 
37 #endif
38 
Rcpp API.
Definition: algo.h:28
void warningcall(SEXP call, const std::string &s)
Definition: print.h:29
void print(SEXP s)
Definition: print.h:25