2013-11-27 16:28:31 +01:00
|
|
|
/*
|
2013-06-18 17:21:38 +02:00
|
|
|
* Copyright (C) 2013 Freie Universität Berlin
|
2010-09-22 15:10:42 +02:00
|
|
|
*
|
2013-11-22 20:47:05 +01:00
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser General
|
2013-06-18 17:21:38 +02:00
|
|
|
* Public License. See the file LICENSE in the top level directory for more
|
|
|
|
* details.
|
2013-11-27 16:28:31 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @addtogroup core_util
|
2010-09-22 15:10:42 +02:00
|
|
|
* @{
|
2013-11-27 16:28:31 +01:00
|
|
|
*
|
|
|
|
* @file debug.h
|
|
|
|
* @brief Debug-header
|
|
|
|
*
|
|
|
|
* #define ENABLE_DEBUG, include this and then use DEBUG as printf you can toggle.
|
|
|
|
*
|
|
|
|
* @author Freie Universität Berlin, Computer Systems & Telematics
|
|
|
|
* @author Kaspar Schleiser <kaspar.schleiser@fu-berlin.de>
|
2010-09-22 15:10:42 +02:00
|
|
|
*/
|
2013-11-27 16:28:31 +01:00
|
|
|
|
|
|
|
#ifndef __DEBUG_H
|
|
|
|
#define __DEBUG_H
|
|
|
|
|
2010-09-22 15:10:42 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2013-07-24 00:36:06 +02:00
|
|
|
#if ENABLE_DEBUG
|
2010-09-22 15:10:42 +02:00
|
|
|
#define DEBUG(...) printf(__VA_ARGS__)
|
2013-07-25 21:56:37 +02:00
|
|
|
#undef ENABLE_DEBUG
|
2010-09-22 15:10:42 +02:00
|
|
|
#else
|
|
|
|
#define DEBUG(...)
|
|
|
|
#endif
|
2013-06-09 18:02:30 +02:00
|
|
|
|
2013-11-27 16:28:31 +01:00
|
|
|
/** @} */
|
|
|
|
#endif /* __DEBUG_H */
|