2017-11-12 09:07:28 +01:00
|
|
|
#ifndef _DEBUG_H
|
|
|
|
#define _DEBUG_H
|
|
|
|
|
2018-04-03 19:37:16 +02:00
|
|
|
#if defined(DEBUG) || defined(TRACE)
|
2018-04-02 14:10:33 +02:00
|
|
|
#include <stdio.h>
|
2018-04-03 19:37:16 +02:00
|
|
|
#endif
|
2017-11-12 09:07:28 +01:00
|
|
|
|
2018-04-03 19:37:16 +02:00
|
|
|
#ifdef DEBUG
|
2018-04-02 14:10:33 +02:00
|
|
|
#define log_debug(...) printf(__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
#define log_debug(...) do { } while (0);
|
|
|
|
#endif
|
2017-11-12 09:07:28 +01:00
|
|
|
|
2018-04-03 19:37:16 +02:00
|
|
|
#ifdef TRACE
|
|
|
|
#define log_trace(...) printf(__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
#define log_trace(...) do { } while (0);
|
|
|
|
#endif
|
|
|
|
|
2017-11-12 09:07:28 +01:00
|
|
|
#endif // _DEBUG_H
|