Skip to content

Commit c584067

Browse files
trying to make sense of what happens with wrap(const char* const)
1 parent 7c38923 commit c584067

File tree

1 file changed

+2
-1
lines changed
  • inst/include/Rcpp/internal

1 file changed

+2
-1
lines changed

inst/include/Rcpp/internal/wrap.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,8 @@ inline SEXP module_wrap<SEXP>( const SEXP& obj ){
921921
}
922922

923923
inline SEXP wrap(const char* const v ){
924-
if (v)
924+
Rprintf( "wrap(const char* const v = <%p>)\n", v ) ;
925+
if (v && v != NULL)
925926
return Rf_mkString(v) ;
926927
else
927928
return R_NilValue;

0 commit comments

Comments
 (0)