[riot-notifications] [RIOT] Replace all numeric constants by macros (#136)

René Kijewski 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:
https://github.com/RIOT-OS/RIOT/issues/136#issuecomment-22720955
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20130815/01ff9266/attachment.html>


More information about the notifications mailing list