aboutsummaryrefslogtreecommitdiff
path: root/include/ubox_debug.h
blob: 686671e5940deb620a9db1332fa3df384a744f0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef _UBOX_DEBUG_H
#define _UBOX_DEBUG_H

#ifdef DEBUG
#define UBOX_DEBUG_LOG(...) \
        do { fprintf(stderr, "DEBUG:%s:%d: ",__FILE__, __LINE__);\
             fprintf(stderr, __VA_ARGS__); } while (0)
#else
#define UBOX_DEBUG_LOG(fmt, args...) /* release */
#endif

#endif /* _UBOX_DEBUG_H */