File tree Expand file tree Collapse file tree 4 files changed +37
-1
lines changed
Expand file tree Collapse file tree 4 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 112015-03-02 Dirk Eddelbuettel <
[email protected] >
22
3+ * inst/include/Rcpp/print.h (Rcpp): New inline function Rcpp::print()
4+ * inst/include/RcppCommon.h: Include new header
5+
36 * src/api.cpp: Commented-out print() in global namespace
47 * src/Rcpp_init.cpp: Commented-out registration of print()
58 * inst/include/Rcpp/routines.h: Commented-out initialization
Original file line number Diff line number Diff line change 1+ // -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*-
2+ //
3+ // Copyright (C) 2015 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+ }
30+
31+ #endif
32+
Original file line number Diff line number Diff line change @@ -173,6 +173,7 @@ namespace Rcpp{
173173#include < Rcpp/internal/SEXP_Iterator.h>
174174#include < Rcpp/internal/converter.h>
175175
176+ #include < Rcpp/print.h>
176177#include < Rcpp/algo.h>
177178
178179#include < Rcpp/sugar/sugar_forward.h>
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ void registerFunctions(){
116116 RCPP_REGISTER (reset_current_error)
117117 RCPP_REGISTER (error_occured)
118118 RCPP_REGISTER (rcpp_get_current_error)
119- // RCPP_REGISTER(print)
119+ // RCPP_REGISTER(print)
120120 #undef RCPP_REGISTER
121121}
122122
You can’t perform that action at this time.
0 commit comments