-
Notifications
You must be signed in to change notification settings - Fork 38
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
Replaced macros with constants. #28
Conversation
I'm surprised this passes the build. Note to self: check why roslint is not active, there should be two spaces before the comment. |
It's an improvement. But more important may be to check why these are constants and not parameters in the first place. |
I suggest you have someone with more domain knowledge than me create an issue about this. |
Is this something you want fixed? (I'm not using the |
You're right. This discussion is already going on in #2 . I'll create an issue about magic numbers in general: #35 |
1c6b7f8
to
1b54e83
Compare
e07ccef
to
a992823
Compare
I want the build to fail on this :). But yes, please fix as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, constants are definitely much better than macros
Fixed by formatting those lines according to the .clang-format file provided by @Timple. |
Replaced all macros with constants.
See https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#es31-dont-use-macros-for-constants-or-functions