Wireshark
4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
epan
conversation_debug.h
Go to the documentation of this file.
1
14
#pragma once
15
#ifdef DEBUG_CONVERSATION
16
17
#include <stdio.h>
18
#include "to_str.h"
19
20
extern
int
_debug_conversation_indent;
/* the instance is in conversation.c */
21
22
#define DINDENT() _debug_conversation_indent += 4
23
#define DENDENT() _debug_conversation_indent -= 4
24
25
#define DPRINT(arg) \
26
g_printerr("%*.*s%s: ", \
27
_debug_conversation_indent,_debug_conversation_indent," ", \
28
G_STRLOC); \
29
g_printerr arg; \
30
g_printerr("\n")
31
32
#define DPRINT2(arg) \
33
g_printerr("%*.*s", \
34
_debug_conversation_indent,_debug_conversation_indent," "); \
35
g_printerr arg; \
36
g_printerr("\n")
37
38
#define DINSTR(arg) arg
39
40
#else
/* !DEBUG_CONVERSATION */
41
42
/* a hack to let these defines be used with trailing semi-colon and not
43
* cause gcc extra-check pedantic warnings for extra colons
44
*/
45
#define DINDENT() (void)0
46
#define DENDENT() (void)0
47
#define DPRINT(arg) (void)0
48
#define DPRINT2(arg) (void)0
49
#define DINSTR(arg) (void)0
50
51
#endif
/* DEBUG_CONVERSATION */
Generated by
1.9.8