File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 112025-11-12 Iñaki Ucar <
[email protected] >
22
33 * inst/include/Rcpp/macros/mask.h: Lay the ground for Rf_error masking
4- with a message at compilation time unless RCPP_NO_MASK_RF_ERROR is defined
4+ with a warning at compilation time unless RCPP_NO_MASK_RF_ERROR is defined
55 * inst/include/RcppCommon.h: Include the previous file in the last place
66 * src/attributes.cpp: Use parentheses to protect call to Rf_error
77 * inst/tinytest/cpp/stack.cpp: Idem
Original file line number Diff line number Diff line change 2222
2323#ifndef RCPP_NO_MASK_RF_ERROR
2424#define Rf_error (...) \
25- _Pragma("message \"Use of Rf_error() instead of Rcpp::stop(). Calls \
25+ _Pragma("GCC warning \"Use of Rf_error() instead of Rcpp::stop(). Calls \
2626to Rf_error() in C++ contexts are unsafe: consider using Rcpp::stop() instead, \
2727or define RCPP_NO_MASK_RF_ERROR if this is a false positive. More info:\n\
2828 - https://github.com/RcppCore/Rcpp/issues/1247\n\
You can’t perform that action at this time.
0 commit comments