[riot-notifications] [RIOT] Replace all numeric constants by macros (#136)
notifications at github.com
Thu Aug 15 20:47:11 CEST 2013
Macros are an ancient way to provide constants. The problem is easy to comprehend: pre-processing is simply the wrong stage to expand constants. Many tools have problems provide proper tooltips to macros, most if not all debuggers fail to provide useful information in expressions using macros. Anonymous enums are only slightly related to the well known named enums. Maybe `static const int FOO = 0x4711;` is easier on the eyes than an enum, but C macros are an abomination. Just my biased opinion.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications