bglibs
include
debug.h
1
#ifndef MSG__DEBUG__H__
2
#define MSG__DEBUG__H__
3
4
#include <stdarg.h>
5
6
extern
int
msg_debug_bits;
7
8
#ifdef MSG_NO_DEBUG
9
#define msg_debug(I,A,B,C,D,E,F,X) do{}while(0)
10
#define msg_debugf(I,X,F,...) do{}while(0)
11
#else
12
void
msg_debug(
int
,
const
char
*,
const
char
*,
const
char
*,
const
char
*,
const
char
*,
const
char
*,
int
);
13
void
msg_debugf(
int
bit,
int
showsys,
const
char
* format, ...);
14
#endif
15
void
msg_debug_init(
void
);
16
17
#define debug1(x,a) msg_debug(x,a,0,0,0,0,0,0)
18
#define debug2(x,a,b) msg_debug(x,a,b,0,0,0,0,0)
19
#define debug3(x,a,b,c) msg_debug(x,a,b,c,0,0,0,0)
20
#define debug4(x,a,b,c,d) msg_debug(x,a,b,c,d,0,0,0)
21
#define debug5(x,a,b,c,d,e) msg_debug(x,a,b,c,d,e,0,0)
22
#define debug6(x,a,b,c,d,e,f) msg_debug(x,a,b,c,d,e,f,0)
23
#define debugf(x,f,...) msg_debugf(x,0,f,__VA_ARGS__)
24
25
#define debug1sys(x,a) msg_debug(x,a,0,0,0,0,0,1)
26
#define debug2sys(x,a,b) msg_debug(x,a,b,0,0,0,0,1)
27
#define debug3sys(x,a,b,c) msg_debug(x,a,b,c,0,0,0,1)
28
#define debug4sys(x,a,b,c,d) msg_debug(x,a,b,c,d,0,0,1)
29
#define debug5sys(x,a,b,c,d,e) msg_debug(x,a,b,c,d,e,0,1)
30
#define debug6sys(x,a,b,c,d,e,f) msg_debug(x,a,b,c,d,e,f,1)
31
#define debugfsys(x,f,...) msg_debugf(x,1,f,__VA_ARGS__)
32
33
#endif
str::s
char * s
Definition:
str.h:36
str_rcut
void str_rcut(str *s, unsigned count)
Definition:
cut.c:22
str::len
unsigned len
Definition:
str.h:40
str_lcut
void str_lcut(str *s, unsigned count)
Definition:
cut.c:30
str_truncate
int str_truncate(str *s, unsigned len)
Definition:
truncate.c:27
str
Definition:
str.h:31
Generated on Tue Jan 5 2021 12:18:07 for bglibs by
1.8.20