@@ -32,11 +32,11 @@ namespace Rcpp{
3232 unsigned long exitRNGScope () ;
3333 }
3434 SEXP get_Rcpp_namespace () ;
35- int * get_cache ( int n ) ;
3635 SEXP rcpp_get_stack_trace () ;
3736 SEXP rcpp_set_stack_trace (SEXP) ;
3837}
3938
39+ int * get_cache ( int n ) ;
4040SEXP stack_trace ( const char *file, int line) ;
4141SEXP get_string_elt (SEXP s, int i);
4242const char * char_get_string_elt (SEXP s, int i) ;
@@ -92,26 +92,20 @@ namespace Rcpp {
9292 static Fun fun = GET_CALLABLE (" enterRNGScope" ) ;
9393 return fun () ;
9494 }
95- }
9695
97- inline unsigned long exitRNGScope (){
98- typedef unsigned long (*Fun)(void ) ;
99- static Fun fun = GET_CALLABLE (" exitRNGScope" ) ;
100- return fun () ;
96+ inline unsigned long exitRNGScope (){
97+ typedef unsigned long (*Fun)(void ) ;
98+ static Fun fun = GET_CALLABLE (" exitRNGScope" ) ;
99+ return fun () ;
100+ }
101101 }
102-
102+
103103 inline SEXP get_Rcpp_namespace () {
104104 typedef SEXP (*Fun)(void ) ;
105105 static Fun fun = GET_CALLABLE (" get_Rcpp_namespace" ) ;
106106 return fun ();
107107 }
108108
109- inline int * get_cache ( int n ){
110- typedef int * (*Fun)(int ) ;
111- static Fun fun = GET_CALLABLE (" get_cache" ) ;
112- return fun (n) ;
113- }
114-
115109}
116110
117111inline SEXP stack_trace ( const char *file, int line){
@@ -192,6 +186,12 @@ inline void setCurrentScope( Rcpp::Module* mod ){
192186 fun (mod) ;
193187}
194188
189+ inline int * get_cache ( int n ){
190+ typedef int * (*Fun)(int ) ;
191+ static Fun fun = GET_CALLABLE (" get_cache" ) ;
192+ return fun (n) ;
193+ }
194+
195195#endif
196196
197197
0 commit comments