Dillo
v3.1.1-99-gf3103cc4
Loading...
Searching...
No Matches
msg.h
Go to the documentation of this file.
1
#ifndef __MSG_H__
2
#define __MSG_H__
3
4
#include <stdio.h>
5
#include "
prefs.h
"
6
7
/*
8
* You can disable any MSG* macro by adding the '_' prefix.
9
*/
10
#define _MSG(...)
11
#define _MSG_WARN(...)
12
#define _MSG_HTTP(...)
13
14
#define MSG_INNARDS(prefix, ...) \
15
D_STMT_START { \
16
if (prefs.show_msg){ \
17
printf(prefix __VA_ARGS__); \
18
fflush (stdout); \
19
} \
20
} D_STMT_END
21
22
#define MSG(...) MSG_INNARDS("", __VA_ARGS__)
23
#define MSG_WARN(...) MSG_INNARDS("** WARNING **: ", __VA_ARGS__)
24
#define MSG_ERR(...) MSG_INNARDS("** ERROR **: ", __VA_ARGS__)
25
#define MSG_HTTP(...) MSG_INNARDS("HTTP warning: ", __VA_ARGS__)
26
27
#endif
/* __MSG_H__ */
prefs.h
src
msg.h
Generated on Sun Nov 24 2024 01:38:41 for Dillo by
1.9.8