Skip to content

Commit 7db4680

Browse files
committed
simpler change
1 parent 3e208ff commit 7db4680

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

inst/include/Rcpp/print.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*-
22
//
3-
// Copyright (C) 2015 Dirk Eddelbuettel
3+
// Copyright (C) 2015 - 2016 Dirk Eddelbuettel
44
//
55
// This file is part of Rcpp.
66
//
@@ -26,6 +26,12 @@ inline void print(SEXP s) {
2626
Rf_PrintValue(s); // defined in Rinternals.h
2727
}
2828

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+
2935
}
3036

3137
#endif

0 commit comments

Comments
 (0)