[riot-devel] [RIOT] Fixups: build with debug enabled (#67)

kaspar030 notifications at github.com
Wed Jul 17 12:21:20 CEST 2013


+1 for tidier code, no need to revert. Could we globally define DEBUG(...) as empty and so get rid of the debug.h include as well?

or better, globally define DEBUG as something like ```do { if (ENABLE_DEBUG) printf(fmt, __VA_ARGS__); } while (0)``` and have ENABLE_DEBUG default to 0.
That way the compiler *always* checks the validity of the debug code.

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/67#issuecomment-21104025
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/devel/attachments/20130717/d87bcbd3/attachment.html>


More information about the devel mailing list