1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

core: debug: rely on optimizer to kick out unused debug code

This commit is contained in:
Kaspar Schleiser 2016-03-24 10:20:46 +01:00
parent f6a5f36e18
commit c001e14f9d

View File

@ -67,7 +67,9 @@ extern "C" {
* @name Debugging defines
* @{
*/
#if ENABLE_DEBUG
#ifndef ENABLE_DEBUG
#define ENABLE_DEBUG (0)
#endif
/**
* @def DEBUG_FUNC
@ -92,10 +94,7 @@ extern "C" {
*
* @note Another name for ::DEBUG_PRINT
*/
#define DEBUG(...) DEBUG_PRINT(__VA_ARGS__)
#else
#define DEBUG(...)
#endif
#define DEBUG(...) if (ENABLE_DEBUG) DEBUG_PRINT(__VA_ARGS__)
/** @} */
/**