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 627586d commit 6472d3aCopy full SHA for 6472d3a
inst/include/Rcpp/macros/mask.h
@@ -25,7 +25,9 @@
25
26
#ifndef RCPP_NO_MASK_RF_ERROR
27
#define Rf_error(...) \
28
- _Pragma("GCC warning \"Invalid use of Rf_error, use Rcpp::stop instead\"") \
+ _Pragma("GCC warning \"Use of Rf_error() replaced with Rcpp::stop(). Calls \
29
+to Rf_error() in C++ contexts are unsafe: consider using Rcpp::stop() instead, \
30
+or define RCPP_NO_MASK_RF_ERROR if this is a false positive.\"") \
31
Rcpp::stop(__VA_ARGS__)
32
#endif
33
0 commit comments