|
167 | 167 | SEXP invoke( SEXP method_xp, SEXP object, SEXP *args, int nargs ){ |
168 | 168 | BEGIN_RCPP |
169 | 169 |
|
170 | | - vec_signed_method* mets = reinterpret_cast< vec_signed_method* >( EXTPTR_PTR( method_xp ) ) ; |
| 170 | + vec_signed_method* mets = reinterpret_cast< vec_signed_method* >( R_ExternalPtrAddr( method_xp ) ) ; |
171 | 171 | typename vec_signed_method::iterator it = mets->begin() ; |
172 | 172 | int n = mets->size() ; |
173 | 173 | method_class* m = 0 ; |
|
194 | 194 | SEXP invoke_void( SEXP method_xp, SEXP object, SEXP *args, int nargs ){ |
195 | 195 | BEGIN_RCPP |
196 | 196 |
|
197 | | - vec_signed_method* mets = reinterpret_cast< vec_signed_method* >( EXTPTR_PTR( method_xp ) ) ; |
| 197 | + vec_signed_method* mets = reinterpret_cast< vec_signed_method* >( R_ExternalPtrAddr( method_xp ) ) ; |
198 | 198 | typename vec_signed_method::iterator it = mets->begin() ; |
199 | 199 | int n = mets->size() ; |
200 | 200 | method_class* m = 0 ; |
|
216 | 216 | SEXP invoke_notvoid( SEXP method_xp, SEXP object, SEXP *args, int nargs ){ |
217 | 217 | BEGIN_RCPP |
218 | 218 |
|
219 | | - vec_signed_method* mets = reinterpret_cast< vec_signed_method* >( EXTPTR_PTR( method_xp ) ) ; |
| 219 | + vec_signed_method* mets = reinterpret_cast< vec_signed_method* >( R_ExternalPtrAddr( method_xp ) ) ; |
220 | 220 | typename vec_signed_method::iterator it = mets->begin() ; |
221 | 221 | int n = mets->size() ; |
222 | 222 | method_class* m = 0 ; |
|
393 | 393 |
|
394 | 394 | SEXP getProperty( SEXP field_xp , SEXP object) { |
395 | 395 | BEGIN_RCPP |
396 | | - prop_class* prop = reinterpret_cast< prop_class* >( EXTPTR_PTR( field_xp ) ) ; |
| 396 | + prop_class* prop = reinterpret_cast< prop_class* >( R_ExternalPtrAddr( field_xp ) ) ; |
397 | 397 | return prop->get( XP(object) ); |
398 | 398 | END_RCPP |
399 | 399 | } |
400 | 400 |
|
401 | 401 | void setProperty( SEXP field_xp, SEXP object, SEXP value) { |
402 | 402 | BEGIN_RCPP |
403 | | - prop_class* prop = reinterpret_cast< prop_class* >( EXTPTR_PTR( field_xp ) ) ; |
| 403 | + prop_class* prop = reinterpret_cast< prop_class* >( R_ExternalPtrAddr( field_xp ) ) ; |
404 | 404 | return prop->set( XP(object), value ); |
405 | 405 | VOID_END_RCPP |
406 | 406 | } |
|
0 commit comments