Displaying 2 results from an estimated 2 matches for "r_new_altrep".
2018 Oct 08
4
R_ext/Altrep.h should be more C++-friendly
...ble to #include "R_ext/Altrep.h" from a C++ file. I think
it needs two changes:
1. add the same __cplusplus check as most of the other header files:
#ifdef __cplusplus
extern "C" {
#endif
...
#ifdef __cplusplus
}
#endif
2. change the line
R_new_altrep(R_altrep_class_t class, SEXP data1, SEXP data2);
to
R_new_altrep(R_altrep_class_t cls, SEXP data1, SEXP data2);
since C++ doesn't like an argument named 'class'
~~ Michael Sannella
[[alternative HTML version deleted]]
2018 Oct 09
0
R_ext/Altrep.h should be more C++-friendly
...think
> it needs two changes:
>
> 1. add the same __cplusplus check as most of the other header files:
> #ifdef __cplusplus
> extern "C" {
> #endif
> ...
> #ifdef __cplusplus
> }
> #endif
>
> 2. change the line
> R_new_altrep(R_altrep_class_t class, SEXP data1, SEXP data2);
> to
> R_new_altrep(R_altrep_class_t cls, SEXP data1, SEXP data2);
> since C++ doesn't like an argument named 'class'
>
> ~~ Michael Sannella
>
> [[alternative HTML version deleted]]
>
> ________...