Skip to content

Commit efbfa16

Browse files
committed
Merge pull request #238 from RcppCore/bugfix/disable-tfm-assert
disable TFM assert (#237)
2 parents 968bf93 + e0f5fec commit efbfa16

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

inst/include/Rcpp/utils/tinyformat.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ namespace tinyformat {}
123123
namespace tfm = tinyformat;
124124

125125
// Error handling; calls assert() by default.
126-
// #define TINYFORMAT_ERROR(reasonString) your_error_handler(reasonString)
126+
namespace Rcpp {
127+
void stop(const std::string& message);
128+
}
129+
#define TINYFORMAT_ERROR(REASON) ::Rcpp::stop(REASON)
127130

128131
// Define for C++11 variadic templates which make the code shorter & more
129132
// general. If you don't define this, C++11 support is autodetected below.

0 commit comments

Comments
 (0)