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

permit strings as log level parameters #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

permit strings as log level parameters #68

wants to merge 1 commit into from

Conversation

v0lker
Copy link
Contributor

@v0lker v0lker commented Oct 5, 2018

No description provided.

};

struct loglevel lls[] = { LLS };
#undef C
Copy link
Member

Choose a reason for hiding this comment

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

I still don't like this undef then re-def. This is quite confusing and over complexify the code for no good reason. Furthermore, the "levels" are defined at 2 different places so you can't easily know what is it.
Gather everything related to level in one place and don't use undef

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i don't understand what you mean by that the levels are defined in 2 different places? clearly this is exactly the advantage of the above approach that you don't have to maintain 2 separate definitions, no? how would you do that without re-using one macro, i wonder...

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