Mercurial > dillo_port1.3
view src/msg.h @ 493:03e0cacbb994
add css.hh css.cc
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> |
---|---|
date | Wed, 22 Oct 2008 22:11:10 +0200 |
parents | 5941434cc64e |
children | 053eb660faaf |
line wrap: on
line source
#ifndef __MSG_H__ #define __MSG_H__ #include <stdio.h> #include "prefs.h" /* * You can disable any MSG* macro by adding the '_' prefix. */ #define _MSG(...) #define _MSG_WARN(...) #define _MSG_HTTP(...) #define MSG(...) \ D_STMT_START { \ if (prefs.show_msg){ \ printf(__VA_ARGS__); \ fflush (stdout); \ } \ } D_STMT_END #define MSG_WARN(...) \ D_STMT_START { \ if (prefs.show_msg) \ printf("** WARNING **: " __VA_ARGS__); \ } D_STMT_END #define MSG_ERR(...) \ D_STMT_START { \ if (prefs.show_msg) \ printf("** ERROR **: " __VA_ARGS__); \ } D_STMT_END #define MSG_HTTP(...) \ printf("HTTP warning: " __VA_ARGS__) #endif /* __MSG_H__ */