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 11
11
12
12
* inst/include/Rcpp/api/meat/Rcpp_eval.h: Evaluate in base env
13
13
14
+ 2018-06-05 Jack Wasey <
[email protected] >
15
+ * inst/include/Rcpp/r_cast.h: Error and abort if debugging
16
+
14
17
2018-06-02 Lionel Henry <
[email protected] >
15
18
16
19
* 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 {
67
67
default :
68
68
const char * fmt = " Not compatible with requested type: "
69
69
" [type=%s; target=%s]." ;
70
+ #ifndef NDEBUG
71
+ REprintf (fmt,
72
+ Rf_type2char (TYPEOF (x)),
73
+ Rf_type2char (RTYPE));
74
+ abort ();
75
+ #else
70
76
throw ::Rcpp::not_compatible (fmt,
71
77
Rf_type2char (TYPEOF (x)),
72
78
Rf_type2char (RTYPE));
79
+ #endif
73
80
} // #nocov end
74
81
return R_NilValue; /* -Wall */
75
82
}
You can’t perform that action at this time.
0 commit comments