Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I don't like your solution because you kill flies with cannons.
Using #define in modern C is not a good practice. You could use inline function, but IMHO neither was necessary in this case. Furthermore, the ? expression is totally unnecessary.
I disagree with "Best Practices" because using "switch" for just two options is too much, it is better with a simple "if else".
That's the reason I didn't vote his as best practice.