File: debug.h

package info (click to toggle)
maliit-inputcontext-gtk 0.99.1%2Bgit20151116.72d7576-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 208 kB
  • sloc: ansic: 896; cpp: 328; makefile: 30
file content (18 lines) | stat: -rw-r--r-- 289 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _DEBUG_H
#define _DEBUG_H

#include <glib.h>

G_BEGIN_DECLS

gboolean maliit_is_debug_enabled(void);

#define DBG(x, a...) if (maliit_is_debug_enabled()) { g_debug("%s: " x, __FUNCTION__, ##a); }

#define STEP() DBG("")

#define UNUSED(v) (void)v;

G_END_DECLS

#endif // _DEBUG_H