We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd7ad87 commit 9a38fc5Copy full SHA for 9a38fc5
inst/include/Rcpp/macros/mask.h
@@ -21,15 +21,13 @@
21
#define Rcpp_macros_mask_h
22
23
#ifndef RCPP_NO_MASK_RF_ERROR
24
-#ifdef RCPP_MASK_RF_ERROR
25
#define Rf_error(...) \
26
- _Pragma("GCC warning \"Use of Rf_error() instead of Rcpp::stop(). Calls \
+ _Pragma("GCC error \"Use of Rf_error() instead of Rcpp::stop(). Calls \
27
to Rf_error() in C++ contexts are unsafe: consider using Rcpp::stop() instead, \
28
or define RCPP_NO_MASK_RF_ERROR if this is a false positive. More info:\n\
29
- https://github.com/RcppCore/Rcpp/issues/1247\n\
30
- https://github.com/RcppCore/Rcpp/pull/1402\"") \
31
Rf_error(__VA_ARGS__)
32
#endif
33
-#endif
34
35
0 commit comments