Skip to content

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