Dillo
v3.1.1-119-g140d9ebd
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 Dec 22 2024 15:53:59 for Dillo by
1.9.8