XFusion API v1.3.0
|
文件模板。 更多...
#include "xf_utils.h"
宏定义 | |
#define | __XF_TEMPLATE_HEADER_DETAIL_H__ |
#define | XF_TEMPLATE_VERSION_MAJOR (1) |
extern "C" 的位置通常在 include 后面。 | |
#define | XF_TEMPLATE_VERSION_MINOR (0) |
#define | XF_TEMPLATE_VERSION_PATCH (0) |
#define | XF_TEMPLATE_VERSION_CHECK(major, minor, patch) ((major * 10000) + (minor * 100) + patch) |
将版本号转换为整数。与 XF_VERSION_VAL 不同。 | |
#define | XF_TEMPLATE_VERSION |
当前模板版本号整数。 | |
类型定义 | |
typedef xf_err_t | xf_templ_err_t |
整形错误类型。 | |
typedef enum _xf_templ_err_code_t | xf_templ_err_code_t |
模板中的错误类型。 | |
枚举 | |
enum | _xf_templ_err_code_t { XF_TEMPL_FAIL = XF_FAIL , XF_TEMPL_OK = XF_OK , XF_TEMPL_ERR_MAX } |
模板中的错误类型。 更多... | |
函数 | |
xf_templ_err_t | xf_template_init (void) |
一个初始化函数。 | |
xf_templ_err_t | xf_template_another_func (void) |
一个函数,函数定义在 xf_template_another.c。 | |
变量 | |
int | g_xf_templ_global_data1_in_head |
全局变量: [Global Variables]. | |
#define __XF_TEMPLATE_HEADER_DETAIL_H__ |
< 格式为大写,且以双下划线开头结尾
在文件 xf_template_header_detail.h 第 13 行定义.
#define XF_TEMPLATE_VERSION_MAJOR (1) |
#define XF_TEMPLATE_VERSION_MINOR (0) |
在文件 xf_template_header_detail.h 第 32 行定义.
#define XF_TEMPLATE_VERSION_PATCH (0) |
在文件 xf_template_header_detail.h 第 33 行定义.
#define XF_TEMPLATE_VERSION_CHECK | ( | major, | |
minor, | |||
patch | |||
) | ((major * 10000) + (minor * 100) + patch) |
将版本号转换为整数。与 XF_VERSION_VAL 不同。
在文件 xf_template_header_detail.h 第 84 行定义.
#define XF_TEMPLATE_VERSION |
当前模板版本号整数。
在文件 xf_template_header_detail.h 第 90 行定义.
typedef xf_err_t xf_templ_err_t |
整形错误类型。
在文件 xf_template_header_detail.h 第 40 行定义.
typedef enum _xf_templ_err_code_t xf_templ_err_code_t |
模板中的错误类型。
enum _xf_templ_err_code_t |
模板中的错误类型。
枚举值 | |
---|---|
XF_TEMPL_FAIL | 通用错误(执行失败) |
XF_TEMPL_OK | 通用成功(执行成功) |
XF_TEMPL_ERR_MAX | 错误类型最大值 |
在文件 xf_template_header_detail.h 第 46 行定义.
xf_templ_err_t xf_template_init | ( | void | ) |
xf_templ_err_t xf_template_another_func | ( | void | ) |
一个函数,函数定义在 xf_template_another.c。
在文件 xf_template_source_detail_another.c 第 28 行定义.
|
extern |
全局变量: [Global Variables].
g_
前缀标识全局变量。在文件 xf_template_source_detail.c 第 275 行定义.