msg.h
来自「嵌入式下基于MiniGUI的Web Browser」· C头文件 代码 · 共 65 行
H
65 行
#ifndef __MSG_H__#define __MSG_H__#include "prefs.h"/* * You can disable any DILLO_MSG* macro by adding the '_' prefix. */#ifndef WIN32#define _MSG(fmt...)#define _MSG_HTML(fmt...)#define _MSG_HTTP(fmt...)#define MSG(fmt...) \ G_STMT_START { \ if (prefs.show_msg) \ g_print(fmt); \ } G_STMT_END//changed by sunny!#define DILLO_MSG(fmt...) \ G_STMT_START { \ if (prefs.show_msg) \ printf (fmt); \ } G_STMT_END#define MSG_HTML(fmt...) \ G_STMT_START { \ Html_msg(html, fmt); \} G_STMT_END#define MSG_HTTP(fmt...) printf("HTTP warning: " fmt)#elsestatic __inline void _MSG(const char * fmt, ...){ return;}static __inline void _MSG_HTML(const char * fmt, ...){ return;}static __inline void _MSG_HTTP(const char * fmt, ...){ return;}static __inline void DILLO_MSG(const char * fmt, ...){ return;}static __inline void MSG_HTML(const char * fmt, ...){ return;}static __inline void MSG_HTTP(const char *format, ...){ return;}#endif#endif /* __MSG_H__ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?