blob: 43dbf63835b76559c0e7177d61ecfcc32f58977b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#ifndef __XFPM_DEBUG_H
#define __XFPM_DEBUG_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
#include <glib.h>
#ifdef DEBUG
#define XFPM_DEBUG(...) G_STMT_START{ \
fprintf(stderr, "TRACE[%s:%d] %s(): ",__FILE__,__LINE__,__func__); \
fprintf(stderr, __VA_ARGS__); \
}G_STMT_END
#else
#define XFPM_DEBUG(...)
#endif
#endif /*__XFPM_DEBUG_H */
|