File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 1111
1212 * inst/include/Rcpp/api/meat/Rcpp_eval.h: Evaluate in base env
1313
14+ 2018-06-05 Jack Wasey <jack@jackwasey.com>
15+ * inst/include/Rcpp/r_cast.h: Error and abort if debugging
16+
14172018-06-02 Lionel Henry <lionel@rstudio.com>
1518
1619 * inst/unitTests/runit.interface.R: New test for the case where
Original file line number Diff line number Diff line change @@ -67,9 +67,16 @@ namespace Rcpp {
6767 default :
6868 const char * fmt = " Not compatible with requested type: "
6969 " [type=%s; target=%s]." ;
70+ #ifndef NDEBUG
71+ REprintf (fmt,
72+ Rf_type2char (TYPEOF (x)),
73+ Rf_type2char (RTYPE));
74+ abort ();
75+ #else
7076 throw ::Rcpp::not_compatible (fmt,
7177 Rf_type2char (TYPEOF (x)),
7278 Rf_type2char (RTYPE));
79+ #endif
7380 } // #nocov end
7481 return R_NilValue; /* -Wall */
7582 }
You can’t perform that action at this time.
0 commit comments