Skip to content

Commit

Permalink
Avoid print for R package. (#7672)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis authored Feb 18, 2022
1 parent 711f7f3 commit 3877043
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions include/xgboost/span.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,7 @@ namespace common {

#if defined(XGBOOST_STRICT_R_MODE) && XGBOOST_STRICT_R_MODE == 1

#define KERNEL_CHECK(cond) \
do { \
if (XGBOOST_EXPECT(!(cond), false)) { \
printf("[xgboost] fatal error.\n"); \
} \
} while (0)
#define KERNEL_CHECK(cond)

#define SPAN_CHECK(cond) KERNEL_CHECK(cond)

Expand Down

0 comments on commit 3877043

Please sign in to comment.