Skip to content

Add macros for min severity to not compile out#60

Merged
dhood merged 2 commits intomasterfrom
fix_compile_out
Oct 25, 2017
Merged

Add macros for min severity to not compile out#60
dhood merged 2 commits intomasterfrom
fix_compile_out

Conversation

@dhood
Copy link
Copy Markdown
Member

@dhood dhood commented Oct 25, 2017

This was broken because it was referencing enum values (@wjwwood this is why I couldn't get it to work).

Alternatively we could choose to factor out definitions for the values used in the severity enum, but for the purpose of deciding whether or not to compile-in macros the value is not important, just the ordering.

This was broken because it was referencing enum values
@dhood dhood added the in review Waiting for review (Kanban column) label Oct 25, 2017
@dhood dhood self-assigned this Oct 25, 2017
/**
* \def RCUTILS_LOG_MIN_SEVERITY
* Define RCUTILS_LOG_MIN_SEVERITY=RCUTILS_LOG_SEVERITY_[DEBUG|INFO|WARN|ERROR|FATAL]
* Define RCUTILS_LOG_MIN_SEVERITY=RCUTILS_LOG_MIN_SEVERITY_[DEBUG|INFO|WARN|ERROR|FATAL|NONE]
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self-review: I'll move NONE to a difference sentence.

@dhood
Copy link
Copy Markdown
Member Author

dhood commented Oct 25, 2017

Will wait for this CI before merging but this functionality doesn't have tests

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@dhood dhood merged commit 6255e2a into master Oct 25, 2017
@dhood dhood deleted the fix_compile_out branch October 25, 2017 22:23
@dhood dhood removed the in review Waiting for review (Kanban column) label Oct 25, 2017
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.

2 participants