Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

safe_xgboost macro (defined in c api docs) has syntax errors #9500

Closed
TZProgrammer opened this issue Aug 17, 2023 · 0 comments · Fixed by #9501
Closed

safe_xgboost macro (defined in c api docs) has syntax errors #9500

TZProgrammer opened this issue Aug 17, 2023 · 0 comments · Fixed by #9501

Comments

@TZProgrammer
Copy link
Contributor

Description:
The C / C++ api documentation specifies a macro "safe_xgboost" to be used with each language. This macro is incorrect for the C++ code, containing at least one syntax error.

One syntax error is that after XGBGetLastError(), two closing parethesis are used, however, there is only one corresponding opening parethesis.

Another syntax error I found was in the use of "Exception". This was not recognized in my environment, however I fixed it by using std::runtime_error instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant