Conversation started Sep 19, 2012 at 0:13.
Sep 19, 2012 00:13
sup everyone
I was just wondering why people tend to use their #define with capital letters ?
It more readily signals 'here be dragons'.
@MohamedAhmedNabil Because macros do not respect scope. If I write #define if while, it will clobber over every code that uses if, which is to say, pretty much everything.
So by using ALL_CAPITAL_LETTERs, it at least reduces the chance of a name clash.
 
Conversation ended Sep 19, 2012 at 0:16.