From 3877043d418da430a5359469ba27907033ca4f3e Mon Sep 17 00:00:00 2001 From: Jiaming Yuan Date: Fri, 18 Feb 2022 08:06:24 +0800 Subject: [PATCH] Avoid print for R package. (#7672) --- include/xgboost/span.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/include/xgboost/span.h b/include/xgboost/span.h index 4d61471bfa57..2bb9945eb0ab 100644 --- a/include/xgboost/span.h +++ b/include/xgboost/span.h @@ -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)