Skip to content

Fix name clash in CHECK macro#627

Merged
szha merged 1 commit into
dmlc:masterfrom
hcho3:fix_name_clash
Jun 16, 2020
Merged

Fix name clash in CHECK macro#627
szha merged 1 commit into
dmlc:masterfrom
hcho3:fix_name_clash

Conversation

@hcho3

@hcho3 hcho3 commented Jun 15, 2020

Copy link
Copy Markdown
Contributor

Follow-up to #626

Address 25aa415#r39900770. A downstream application may use a local variable named err and that would clash with the variable err used in DMLC logging. Rename the latter variable to __dmlc__log__err, which (I hope) is unlikely to be used in a downstream application.

@szha

Related: Library writers often use symbols with double underscores to avoid name clashes.

cc @okuvshynov @junrushao1994 @trivialfis

@hcho3 hcho3 requested a review from szha June 15, 2020 06:19
@hcho3

hcho3 commented Jun 16, 2020

Copy link
Copy Markdown
Contributor Author

@trivialfis Can you review?

@trivialfis

Copy link
Copy Markdown
Member

Why is this a follow up to #611?

@hcho3

hcho3 commented Jun 16, 2020

Copy link
Copy Markdown
Contributor Author

@trivialfis Sorry I meant to say #626

@szha szha merged commit ebcaa42 into dmlc:master Jun 16, 2020
@hcho3 hcho3 deleted the fix_name_clash branch June 16, 2020 03:30
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 this pull request may close these issues.

3 participants