File tree 1 file changed +11
-6
lines changed
Filter options
inst/include/RcppParallel 1 file changed +11
-6
lines changed
Original file line number Diff line number Diff line change 6
6
#include < cstring>
7
7
8
8
extern " C" {
9
- void REprintf (const char *, ...);
9
+ void REprintf (const char *, ...);
10
10
}
11
11
12
12
namespace RcppParallel {
@@ -33,14 +33,16 @@ inline backend_type defaultBackend()
33
33
34
34
#endif
35
35
36
-
37
-
38
36
inline const char * backendToString (backend_type backend)
39
37
{
40
38
switch (backend)
41
39
{
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" ;
44
46
}
45
47
}
46
48
@@ -56,7 +58,10 @@ inline backend_type backend()
56
58
#if RCPP_PARALLEL_USE_TBB
57
59
return BACKEND_TBB;
58
60
#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);
60
65
return BACKEND_TINYTHREAD;
61
66
#endif
62
67
}
You can’t perform that action at this time.
0 commit comments