Remove STRING_VALUE to keep supporting older versions of R
STRING_VALUE does not work with R_NO_REMAP in older versions (it broke 3.0.2)
This commit is contained in:
parent
15c433c5f9
commit
fd2420cdcc
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ SWIGEXPORT void SWIG_init(void) {
|
|||
|
||||
%runtime %{
|
||||
void SWIG_R_Raise(SEXP obj, const char *msg) {
|
||||
Rf_error(Rf_isString(obj) ? STRING_VALUE(obj) : msg);
|
||||
Rf_error(Rf_isString(obj) ? CHAR(Rf_asChar(obj)) : msg);
|
||||
}
|
||||
%}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue