Skip to content

Commit

Permalink
lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jan 21, 2025
1 parent d665490 commit ebf81f3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/c_api/c_api_error.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@
#define API_BEGIN_UNGUARD() \
LOG(CONSOLE) << "[XGBoost C API invocation] " << __PRETTY_FUNCTION__; \
try {

#else // LOG_CAPI_INVOCATION

#define API_BEGIN() \
try { \
auto __guard = ::xgboost::XGBoostAPIGuard();

#define API_BEGIN_UNGUARD() try {

#endif // LOG_CAPI_INVOCATION

/*! \brief every function starts with API_BEGIN();
Expand Down

0 comments on commit ebf81f3

Please sign in to comment.