Avoid print for R package. (#7672)

This commit is contained in:
Jiaming Yuan 2022-02-18 08:06:24 +08:00 committed by GitHub
parent 711f7f3851
commit 3877043d41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)