| 1 | #ifndef _DEBUG_H |
| 2 | #define _DEBUG_H |
| 3 | |
| 4 | #include <glib.h> |
| 5 | |
| 6 | G_BEGIN_DECLS |
| 7 | |
| 8 | gboolean maliit_is_debug_enabled(void); |
| 9 | |
| 10 | #define DBG(x, a...) if (maliit_is_debug_enabled()) { g_debug("%s: " x, __FUNCTION__, ##a); } |
| 11 | |
| 12 | #define STEP() DBG("") |
| 13 | |
| 14 | #define UNUSED(v) (void)v; |
| 15 | |
| 16 | G_END_DECLS |
| 17 | |
| 18 | #endif // _DEBUG_H |