Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions inst/include/Rcpp/macros/mask.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@
#define Rcpp_macros_mask_h

#ifndef RCPP_NO_MASK_RF_ERROR
#ifdef RCPP_MASK_RF_ERROR
#define Rf_error(...) \
_Pragma("GCC warning \"Use of Rf_error() instead of Rcpp::stop(). Calls \
_Pragma("GCC error \"Use of Rf_error() instead of Rcpp::stop(). Calls \
to Rf_error() in C++ contexts are unsafe: consider using Rcpp::stop() instead, \
or define RCPP_NO_MASK_RF_ERROR if this is a false positive. More info:\n\
- https://github.com/RcppCore/Rcpp/issues/1247\n\
- https://github.com/RcppCore/Rcpp/pull/1402\"") \
Rf_error(__VA_ARGS__)
#endif
#endif

#endif