File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
inst/include/RcppParallel Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 66#include < cstring>
77
88extern " C" {
9- void REprintf (const char *, ...);
9+ void REprintf (const char *, ...);
1010}
1111
1212namespace RcppParallel {
@@ -33,14 +33,16 @@ inline backend_type defaultBackend()
3333
3434#endif
3535
36-
37-
3836inline const char * backendToString (backend_type backend)
3937{
4038 switch (backend)
4139 {
42- case BACKEND_TBB: return " tbb" ;
43- case BACKEND_TINYTHREAD: return " tinythread" ;
40+ case BACKEND_TBB:
41+ return " tbb" ;
42+ case BACKEND_TINYTHREAD:
43+ return " tinythread" ;
44+ default :
45+ return " tbb" ;
4446 }
4547}
4648
@@ -56,7 +58,10 @@ inline backend_type backend()
5658#if RCPP_PARALLEL_USE_TBB
5759 return BACKEND_TBB;
5860#else
59- REprintf (" tbb backend is not available; using tinythread instead\n " );
61+ const char * msg =
62+ " tbb backend is not available; using tinythread instead" ;
63+
64+ REprintf (" %s\n " , msg);
6065 return BACKEND_TINYTHREAD;
6166#endif
6267 }
You can’t perform that action at this time.
0 commit comments