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

René Kijewski notifications at github.com
Wed Aug 14 16:00:59 CEST 2013

I think macros are by far not the best way (read: not even a good way) to replace "magic numbers". Many best-practice guides prefer enums as in:

    enum { // ← that is an anonymous enum
        MAGIC1 = 1,
        MAGIC2 = 2,

Before anyone asks: Yes, that is valid C and passes `-Wall -Wextra -pedantic -ansi`.

Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20130814/d9930b6b/attachment.html>

More information about the notifications mailing list