Dillo v3.1.1-119-g140d9ebd
Loading...
Searching...
No Matches
msg.h File Reference
#include <stdio.h>
#include "prefs.h"
Include dependency graph for msg.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _MSG(...)
 
#define _MSG_WARN(...)
 
#define _MSG_HTTP(...)
 
#define MSG_INNARDS(prefix, ...)
 
#define MSG(...)   MSG_INNARDS("", __VA_ARGS__)
 
#define MSG_WARN(...)   MSG_INNARDS("** WARNING **: ", __VA_ARGS__)
 
#define MSG_ERR(...)   MSG_INNARDS("** ERROR **: ", __VA_ARGS__)
 
#define MSG_HTTP(...)   MSG_INNARDS("HTTP warning: ", __VA_ARGS__)
 

Macro Definition Documentation

◆ _MSG

#define _MSG (   ...)

Definition at line 10 of file msg.h.

◆ _MSG_HTTP

#define _MSG_HTTP (   ...)

Definition at line 12 of file msg.h.

◆ _MSG_WARN

#define _MSG_WARN (   ...)

Definition at line 11 of file msg.h.

◆ MSG

#define MSG (   ...)    MSG_INNARDS("", __VA_ARGS__)

Definition at line 22 of file msg.h.

◆ MSG_ERR

#define MSG_ERR (   ...)    MSG_INNARDS("** ERROR **: ", __VA_ARGS__)

Definition at line 24 of file msg.h.

◆ MSG_HTTP

#define MSG_HTTP (   ...)    MSG_INNARDS("HTTP warning: ", __VA_ARGS__)

Definition at line 25 of file msg.h.

◆ MSG_INNARDS

#define MSG_INNARDS (   prefix,
  ... 
)
Value:
if (prefs.show_msg){ \
printf(prefix __VA_ARGS__); \
fflush (stdout); \
} \
#define D_STMT_START
Definition msg.h:8
#define D_STMT_END
Definition msg.h:9
DilloPrefs prefs
Global Data.
Definition prefs.c:33
bool_t show_msg
Definition prefs.h:121

Definition at line 14 of file msg.h.

◆ MSG_WARN

#define MSG_WARN (   ...)    MSG_INNARDS("** WARNING **: ", __VA_ARGS__)

Definition at line 23 of file msg.h.