 |
XFusion API v1.3.0
|
浏览该文件的文档.
12#ifndef __XF_LOG_CONFIG_INTERNEL_H__
13#define __XF_LOG_CONFIG_INTERNEL_H__
17#include "xf_log_config.h"
26#if !defined(XF_LOG_COLORS_ENABLE) || XF_LOG_COLORS_ENABLE
27#define XF_LOG_COLORS_IS_ENABLE (1)
29#define XF_LOG_COLORS_IS_ENABLE (0)
33#if !defined(XF_LOG_FILTER_ENABLE) || XF_LOG_FILTER_ENABLE
34#define XF_LOG_FILTER_IS_ENABLE (1)
36#define XF_LOG_FILTER_IS_ENABLE (0)
40#if !defined(XF_LOG_CTYPE_ENABLE) || XF_LOG_CTYPE_ENABLE
41#define XF_LOG_CTYPE_IS_ENABLE (1)
43#define XF_LOG_CTYPE_IS_ENABLE (0)
47#if !defined(XF_LOG_STDDEF_ENABLE) || XF_LOG_STDDEF_ENABLE
48#define XF_LOG_STDDEF_IS_ENABLE (1)
50#define XF_LOG_STDDEF_IS_ENABLE (0)
54#if !defined(XF_LOG_STDINT_ENABLE) || XF_LOG_STDINT_ENABLE
55#define XF_LOG_STDINT_IS_ENABLE (1)
57#define XF_LOG_STDINT_IS_ENABLE (0)
61#if !defined(XF_LOG_STRLEN_ENABLE) || XF_LOG_STRLEN_ENABLE
62#define XF_LOG_STRLEN_IS_ENABLE (1)
64#define XF_LOG_STRLEN_IS_ENABLE (0)
67#if !XF_LOG_STRLEN_IS_ENABLE && !defined(xf_log_strlen)
68#error "xf_log_strlen(s) must be defined when XF_LOG_STRLEN_IS_ENABLE is 0"
72#if !defined(XF_LOG_VSNPRINTF_ENABLE) || XF_LOG_VSNPRINTF_ENABLE
73#define XF_LOG_VSNPRINTF_IS_ENABLE (1)
75#define XF_LOG_VSNPRINTF_IS_ENABLE (0)
78#if !XF_LOG_VSNPRINTF_IS_ENABLE && !defined(xf_log_vsprintf)
79#error "xf_log_vsprintf(buffer, maxlen, fmt, args) must be defined when XF_LOG_VSNPRINTF_IS_ENABLE is 0"
84#define XF_LOG_OBJ_NUM (1)
89#define XF_LOG_NEWLINE "\n"
93#ifndef XF_FORMAT_FLAG_SIZE
94#define XF_FORMAT_FLAG_SIZE 8
98#ifndef XF_FORMAT_BUFFER_SIZE
99#define XF_FORMAT_BUFFER_SIZE 32