ekg2
GIT master
remote
debug.h
Idź do dokumentacji tego pliku.
1
/* $Id: debug.h 4564 2008-08-31 15:49:56Z peres $ */
2
3
#ifndef __EKG_DEBUG_H
4
#define __EKG_DEBUG_H
5
6
typedef
enum
{
7
DEBUG_IO
= 1,
8
DEBUG_IORECV
,
9
DEBUG_FUNCTION
,
10
DEBUG_ERROR
,
11
DEBUG_GGMISC
,
/* cause of a lot GG_DEBUG_MISC in libgadu we've got special formats for them... */
12
DEBUG_WHITE
,
13
DEBUG_WARN
,
14
DEBUG_OK
,
15
__DEBUG_WTF
/* serious fail */
16
}
debug_level_t
;
17
18
void
debug
(
const
char
*
format
, ...);
19
void
debug_ext
(
debug_level_t
level,
const
char
*
format
, ...);
20
21
#define debug_io(args...) debug_ext(DEBUG_IO, args)
22
#define debug_iorecv(args...) debug_ext(DEBUG_IORECV, args)
23
#define debug_function(args...) debug_ext(DEBUG_FUNCTION, args)
24
#define debug_error(args...) debug_ext(DEBUG_ERROR, args)
25
#define debug_white(args...) debug_ext(DEBUG_WHITE, args)
26
#define debug_warn(args...) debug_ext(DEBUG_WARN, args)
27
#define debug_ok(args...) debug_ext(DEBUG_OK, args)
28
#define debug_wtf(args...) debug_ext(DEBUG_WTF, args)
29
30
#endif
31
32
33
/*
34
* Local Variables:
35
* mode: c
36
* c-file-style: "k&r"
37
* c-basic-offset: 8
38
* indent-tabs-mode: t
39
* End:
40
*/
DEBUG_IORECV
Definition:
debug.h:12
DEBUG_FUNCTION
Definition:
debug.h:13
format
Definition:
ekg_hash_benchmark.c:47
DEBUG_OK
Definition:
debug.h:18
DEBUG_ERROR
Definition:
debug.h:14
debug
void debug(const char *format,...)
Definition:
stuff.c:1961
DEBUG_WHITE
Definition:
debug.h:16
debug_ext
void debug_ext(debug_level_t level, const char *format,...)
Definition:
stuff.c:1947
DEBUG_WARN
Definition:
debug.h:17
DEBUG_GGMISC
Definition:
debug.h:15
debug_level_t
debug_level_t
Definition:
debug.h:10
DEBUG_IO
Definition:
debug.h:11
__DEBUG_WTF
Definition:
debug.h:15
Wygenerowano przez
1.8.13