dillo  3.0.5
About: dillo is a small, fast, extensible Web browser particularly suitable for older or smaller computers and embedded systems (but only limited or no support for frames, CSS, JavaScript, Java).
  Fossies Dox: dillo-3.0.5.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

msg.h
Go to the documentation of this file.
1 #ifndef __MSG_H__
2 #define __MSG_H__
3 
4 #include <stdio.h>
5 
6 #define prefs_show_msg 1
7 
8 #define D_STMT_START do
9 #define D_STMT_END while (0)
10 
11 /*
12  * You can disable any MSG* macro by adding the '_' prefix.
13  */
14 #define _MSG(...)
15 #define _MSG_WARN(...)
16 #define _MSG_ERR(...)
17 
18 
19 #define MSG(...) \
20  D_STMT_START { \
21  if (prefs_show_msg){ \
22  printf(__VA_ARGS__); \
23  fflush (stdout); \
24  } \
25  } D_STMT_END
26 
27 #define MSG_WARN(...) \
28  D_STMT_START { \
29  if (prefs_show_msg) \
30  printf("** WARNING **: " __VA_ARGS__); \
31  } D_STMT_END
32 
33 #define MSG_ERR(...) \
34  D_STMT_START { \
35  if (prefs_show_msg) \
36  printf("** ERROR **: " __VA_ARGS__); \
37  } D_STMT_END
38 
39 #endif /* __MSG_H__ */