4 ms·
Yes, macros are to be fully enclosed but just for a better readability sake I've avoided them here. As I said in my comment above, I mainly intended to convey t
by intull 13y ago
Yes, macros are to be fully enclosed but just for a better readability sake I've avoided them here. As I said in my comment above, I mainly intended to convey the idea. I did explain every aspect during the talk though.
I'll make a better effort from next time! Thanks
- codezero 13y agoThis seems like a little detail that there's no harm in including, especially since you focus so much on macros, and this is kind of macro 101.
- intull 13y agoYes, I get your point :) The post doesn't focus on the preprocessor actually, its just that there's more to explain in it which people usually neglect. So I've somehow written more on the preprocessor which looks like I've focused on it.
- breadbox 13y agoIn this particular case, resist the temptation to simplify. Macro parenthesization is critical, and should be second nature for anyone who wants to play around with them.
- EpicEng 13y ago"Simplicity" is not a good thing when it introduces confusion and errors.