-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrurl_internal.h
More file actions
31 lines (23 loc) · 786 Bytes
/
trurl_internal.h
File metadata and controls
31 lines (23 loc) · 786 Bytes
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
/*
TRURLib
$Id$
*/
#ifndef TRURL__INTERNAL_H
#define TRURL__INTERNAL_H
extern void trurl_die(const char *fmt,...);
extern int trurl_default_cmpf(const void *a, const void *b);
#include <stdio.h>
#if ENABLE_TRACE
# define DBGF(fmt, args...) fprintf(stdout, "%-18s: " fmt, __FUNCTION__ , ## args)
# define DBG(fmt, args...) fprintf(stdout, fmt, ## args)
#else
# define DBGF(fmt, args...) ((void) 0)
# define DBG(fmt, args...) ((void) 0)
#endif
#define DBGMSG_F DBGF
#define DBGMSG DBG
#define DBGF_NULL(fmt, args...) ((void) 0)
#define DBGF_F(fmt, args...) fprintf(stdout, "%-18s: " fmt, __FUNCTION__ , ## args)
#define dbgf(fmt, args...) fprintf(stdout, "%-18s: " fmt, __FUNCTION__ , ## args)
#define dbgf_(fmt, args...) ((void) 0)
#endif /* TRURL__INTERNAL_H */