XFusion API v1.3.0
载入中...
搜索中...
未找到
xf_std_config.h
浏览该文件的文档.
1
12#ifndef __XF_STD_CONFIG_H__
13#define __XF_STD_CONFIG_H__
14
15/* ==================== [Includes] ========================================== */
16
17#include "../xf_utils_internal_config.h"
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23/* ==================== [Defines] =========================================== */
24
25#if !defined(XF_STDDEF_ENABLE) || (XF_STDDEF_ENABLE)
26# define XF_STDDEF_IS_ENABLE (1)
27#else
28# define XF_STDDEF_IS_ENABLE (0)
29#endif
30
31#if !defined(XF_STDINT_ENABLE) || (XF_STDINT_ENABLE)
32# define XF_STDINT_IS_ENABLE (1)
33#else
34# define XF_STDDEF_IS_ENABLE (0)
35#endif
36
37#if !defined(XF_STDBOOL_ENABLE) || (XF_STDBOOL_ENABLE)
38# define XF_STDBOOL_IS_ENABLE (1)
39#else
40# define XF_STDBOOL_IS_ENABLE (0)
41#endif
42
49#if !defined(XF_STDLIB_ENABLE) || (XF_STDLIB_ENABLE)
50# define XF_STDLIB_IS_ENABLE (1)
51#else
52# define XF_STDLIB_IS_ENABLE (0)
53#endif
54
55#ifndef xf_user_malloc
56# define xf_user_malloc(x) malloc(x)
57#endif
58
59#ifndef xf_user_free
60# define xf_user_free(x) free(x)
61#endif
62
74#if !defined(XF_STRING_ENABLE) || (XF_STRING_ENABLE)
75# define XF_STRING_IS_ENABLE (1)
76#else
77# define XF_STRING_IS_ENABLE (0)
78#endif
79
80#ifndef xf_user_memcpy
81# define xf_user_memcpy(dest, src, n) memcpy(dest, src, n)
82#endif
83
84#ifndef xf_user_memcmp
85# define xf_user_memcmp(dest, src, n) memcmp(dest, src, n)
86#endif
87
88#ifndef xf_user_memset
89# define xf_user_memset(ptr, value, size) memset((ptr), (value), (size))
90#endif
91
92#ifndef xf_user_strcmp
93# define xf_user_strcmp(dest, src) strcmp(dest, src)
94#endif
95
96#ifndef xf_user_strncmp
97# define xf_user_strncmp(dest, src, n) strncmp(dest, src, n)
98#endif
99
100#ifndef xf_user_strlen
101# define xf_user_strlen(str) strlen(str)
102#endif
103
115#if !defined(XF_STDIO_ENABLE) || (XF_STDIO_ENABLE)
116# define XF_STDIO_IS_ENABLE (1)
117#else
118# define XF_STDIO_IS_ENABLE (0)
119#endif
120
121#ifndef xf_user_sprintf
122# define xf_user_sprintf(dest, format, ...) sprintf(dest, format, ##__VA_ARGS__)
123#endif
124
125#ifndef xf_user_snprintf
126# define xf_user_snprintf(dest, size, format, ...) snprintf(dest, size, format, ##__VA_ARGS__)
127#endif
128
129#ifndef xf_user_vsprintf
130# define xf_user_vsprintf(dest, format, ap) vsprintf(dest, format, ap)
131#endif
132
133#ifndef xf_user_vsnprintf
134# define xf_user_vsnprintf(dest, size, format, ap) vsnprintf(dest, size, format, ap)
135#endif
136
137#ifndef xf_user_sscanf
138# define xf_user_sscanf(source, format, ...) sscanf(source, format, ##__VA_ARGS__)
139#endif
140
146/* ==================== [Typedefs] ========================================== */
147
148/* ==================== [Global Prototypes] ================================= */
149
150/* ==================== [Macros] ============================================ */
151
152#ifdef __cplusplus
153} /* extern "C" */
154#endif
155
156#endif // __XF_STD_CONFIG_H__