22 #ifndef Rcpp_internal_h
23 #define Rcpp_internal_h
25 #include <R_ext/Rdynload.h>
27 #define CALLFUN_0(name) SEXP name()
28 #define CALLFUN_1(name) SEXP name(SEXP)
29 #define CALLFUN_2(name) SEXP name(SEXP,SEXP)
30 #define CALLFUN_3(name) SEXP name(SEXP,SEXP,SEXP)
31 #define CALLFUN_4(name) SEXP name(SEXP,SEXP,SEXP,SEXP)
32 #define CALLFUN_5(name) SEXP name(SEXP,SEXP,SEXP,SEXP,SEXP)
33 #define EXTFUN(name) SEXP name(SEXP)
39 #define UNPACK_EXTERNAL_ARGS(__CARGS__,__P__) \
40 SEXP __CARGS__[MAX_ARGS]; \
42 for (; nargs<MAX_ARGS; nargs++) { \
43 if (Rf_isNull(__P__)) break; \
44 __CARGS__[nargs] = CAR(__P__); \
48 #define RCPP_FUN_1(__OUT__,__NAME__, ___0) \
49 __OUT__ RCPP_DECORATE(__NAME__)(___0); \
50 SEXP __NAME__(SEXP x0) { \
51 SEXP res = R_NilValue; \
53 res = ::Rcpp::wrap(RCPP_DECORATE(__NAME__)(::Rcpp::internal::converter(x0))); \
57 __OUT__ RCPP_DECORATE(__NAME__)(___0)
60 #define RCPP_FUN_2(__OUT__,__NAME__, ___0, ___1) \
61 __OUT__ RCPP_DECORATE(__NAME__)(___0, ___1); \
62 SEXP __NAME__(SEXP x0, SEXP x1) { \
63 SEXP res = R_NilValue; \
65 res = ::Rcpp::wrap(RCPP_DECORATE(__NAME__)(::Rcpp::internal::converter(x0), \
66 ::Rcpp::internal::converter(x1))); \
70 __OUT__ RCPP_DECORATE(__NAME__)(___0, ___1)
72 #define RCPP_FUN_3(__OUT__,__NAME__, ___0, ___1, ___2) \
73 __OUT__ RCPP_DECORATE(__NAME__)(___0, ___1, ___2); \
74 SEXP __NAME__(SEXP x0, SEXP x1, SEXP x2) { \
75 SEXP res = R_NilValue; \
77 res = ::Rcpp::wrap(RCPP_DECORATE(__NAME__)(::Rcpp::internal::converter(x0), \
78 ::Rcpp::internal::converter(x1), \
79 ::Rcpp::internal::converter(x2))); \
83 __OUT__ RCPP_DECORATE(__NAME__)(___0, ___1, ___2)
85 #define RCPP_FUN_4(__OUT__,__NAME__, ___0, ___1, ___2, ___3) \
86 __OUT__ RCPP_DECORATE(__NAME__)(___0, ___1, ___2, ___3); \
87 SEXP __NAME__(SEXP x0, SEXP x1, SEXP x2, SEXP x3) { \
88 SEXP res = R_NilValue; \
90 res = ::Rcpp::wrap( RCPP_DECORATE(__NAME__)(::Rcpp::internal::converter(x0), \
91 ::Rcpp::internal::converter(x1), \
92 ::Rcpp::internal::converter(x2), \
93 ::Rcpp::internal::converter(x3))); \
97 __OUT__ RCPP_DECORATE(__NAME__)(___0, ___1, ___2, ___3)
SEXP as_character_externalptr(SEXP xp)
SEXP getRcppVersionStrings()
SEXP rcpp_can_use_cxx11()
SEXP rcpp_can_use_cxx0x()
SEXP rcpp_error_recorder(SEXP e)
void init_Rcpp_routines(DllInfo *)
SEXP get_Rcpp_protection_stack()
SEXP CppMethod__invoke_void(SEXP args)
SEXP CppMethod__invoke(SEXP args)
SEXP InternalFunction_invoke(SEXP args)
SEXP CppMethod__invoke_notvoid(SEXP args)
SEXP class__dummyInstance(SEXP args)
SEXP Module__invoke(SEXP args)
SEXP class__newInstance(SEXP args)