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 6b326a6 commit f5857fbCopy full SHA for f5857fb
inst/include/Rcpp/macros/mask.h
@@ -21,15 +21,15 @@
21
#define Rcpp_macros_mask_h
22
23
#ifndef RCPP_NO_MASK_RF_ERROR
24
-/** cannot emit a message, no warning yet
+#ifdef RCPP_MASK_RF_ERROR
25
#define Rf_error(...) \
26
_Pragma("GCC warning \"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