@@ -46,7 +46,7 @@ using namespace Rcpp;
46
46
size_t last_close = buffer.find_last_of (' )' );
47
47
if (last_open == std::string::npos ||
48
48
last_close == std::string::npos) {
49
- return input;
49
+ return input; // #nocov
50
50
}
51
51
std::string function_name = buffer.substr (last_open + 1 , last_close - last_open - 1 );
52
52
// Strip the +0x14 (if it exists, which it does not in earlier versions of gcc)
@@ -91,7 +91,7 @@ namespace Rcpp {
91
91
}
92
92
93
93
// [[Rcpp::register]]
94
- const char * type2name (SEXP x) {
94
+ const char * type2name (SEXP x) { // #nocov start
95
95
switch (TYPEOF (x)) {
96
96
case NILSXP: return " NILSXP" ;
97
97
case SYMSXP: return " SYMSXP" ;
@@ -120,7 +120,7 @@ namespace Rcpp {
120
120
default :
121
121
return " <unknown>" ;
122
122
}
123
- }
123
+ } // #nocov end
124
124
125
125
126
126
} // namespace Rcpp
@@ -145,21 +145,21 @@ std::string demangle(const std::string& name) {
145
145
}
146
146
147
147
// [[Rcpp::register]]
148
- const char * short_file_name (const char * file) {
148
+ const char * short_file_name (const char * file) { // #nocov start
149
149
std::string f (file);
150
150
size_t index = f.find (" /include/" );
151
151
if (index != std::string::npos) {
152
152
f = f.substr (index + 9 );
153
153
}
154
154
return f.c_str ();
155
- }
155
+ } // #nocov end
156
156
157
157
// [[Rcpp::internal]]
158
- SEXP as_character_externalptr (SEXP xp) {
158
+ SEXP as_character_externalptr (SEXP xp) { // #nocov start
159
159
char buffer[20 ];
160
160
snprintf (buffer, 20 , " %p" , (void *)EXTPTR_PTR (xp));
161
161
return Rcpp::wrap ((const char *)buffer);
162
- }
162
+ } // #nocov end
163
163
164
164
// [[Rcpp::internal]]
165
165
SEXP rcpp_capabilities () {
@@ -250,23 +250,23 @@ SEXP rcpp_capabilities() {
250
250
251
251
252
252
// [[Rcpp::internal]]
253
- SEXP rcpp_can_use_cxx0x () {
253
+ SEXP rcpp_can_use_cxx0x () { // #nocov start
254
254
#if defined(HAS_VARIADIC_TEMPLATES) || defined(RCPP_USING_CXX11)
255
255
return Rf_ScalarLogical (TRUE );
256
256
#else
257
257
return Rf_ScalarLogical (FALSE );
258
258
#endif
259
- }
259
+ } // #nocov end
260
260
261
261
262
262
// [[Rcpp::internal]]
263
- SEXP rcpp_can_use_cxx11 () {
263
+ SEXP rcpp_can_use_cxx11 () { // #nocov start
264
264
#if defined(RCPP_USING_CXX11)
265
265
return Rf_ScalarLogical (TRUE );
266
266
#else
267
267
return Rf_ScalarLogical (FALSE );
268
268
#endif
269
- }
269
+ } // #nocov end
270
270
271
271
272
272
// [[Rcpp::register]]
0 commit comments