ekg2
GIT master
Strona główna
Dodatkowe strony
Moduły
Struktury Danych
Pliki
Lista plików
Globalne
All
Struktury Danych
Pliki
Funkcje
Zmienne
Definicje typów
Wyliczenia
Wartości wyliczeń
Definicje
Grupay
Strony
ekg
debug.h
Idź do dokumentacji tego pliku.
1
/* $Id$ */
2
3
#ifndef __EKG_DEBUG_H
4
#define __EKG_DEBUG_H
5
6
#ifdef __cplusplus
7
extern
"C"
{
8
#endif
9
10
typedef
enum
{
11
DEBUG_IO
= 1,
12
DEBUG_IORECV
,
13
DEBUG_FUNCTION
,
14
DEBUG_ERROR
,
15
DEBUG_GGMISC
,
/* cause of a lot GG_DEBUG_MISC in libgadu we've got special formats for them... */
16
DEBUG_WHITE
,
17
DEBUG_WARN
,
18
DEBUG_OK
19
}
debug_level_t
;
20
21
#ifndef DISABLE_DEBUG
22
void
debug
(
const
char
*
format
, ...);
23
void
debug_ext
(
debug_level_t
level,
const
char
*
format
, ...);
24
#else
25
#define debug(...)
26
#define debug_ext(...)
27
#endif
28
29
#define debug_io(args...) debug_ext(DEBUG_IO, args)
30
#define debug_iorecv(args...) debug_ext(DEBUG_IORECV, args)
31
#define debug_function(args...) debug_ext(DEBUG_FUNCTION, args)
32
#define debug_error(args...) debug_ext(DEBUG_ERROR, args)
33
#define debug_white(args...) debug_ext(DEBUG_WHITE, args)
34
#define debug_warn(args...) debug_ext(DEBUG_WARN, args)
35
#define debug_ok(args...) debug_ext(DEBUG_OK, args)
36
37
#ifdef __cplusplus
38
}
39
#endif
40
41
#endif
42
43
44
/*
45
* Local Variables:
46
* mode: c
47
* c-file-style: "k&r"
48
* c-basic-offset: 8
49
* indent-tabs-mode: t
50
* End:
51
*/
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
Wygenerowano So, 19 kwi 2014 18:23:11 dla ekg2 programem
1.8.6