12#if !defined(_INCLUDE_MM_IO_H_)
13#define _INCLUDE_MM_IO_H_ 1
96#define MSTR_COUNT_VA_ARGS_HELPER( \
123#define MSTR_COUNT_VA_ARGS(...) \
124 MSTR_COUNT_VA_ARGS_HELPER( \
153#define mstr_print(fmt, ...) \
157 MSTR_COUNT_VA_ARGS(__VA_ARGS__), \
167#define mstr_print(fmt, ...) ((void)(0))
#define MSTR_EXPORT_API(ret)
Definition mm_cfg.h:421
struct tagMStrIOCallback MStrIOCallback
IO回调的接口
mstr_result_t(* MStrIOWrite)(void *ctx, const byte_t *data, usize_t len)
写入数据
Definition mm_io.h:22
mstr_iovformat(MStrIOCallback *io, const char *fmt, usize_t fmt_place, va_list *ap_ptr)
格式化字符串到指定io
Definition mm_io.c:66
mstr_io_init(void *context, MStrIOCallback *obj, MStrIOWrite cb_write)
初始化IO的结构
Definition mm_io.c:40
mstr_ioformat(MStrIOCallback *io, const char *fmt, usize_t fmt_place,...)
格式化字符串到指定io
Definition mm_io.c:53
enum tagMStrResult mstr_result_t
结果类型
uint8_t byte_t
字节(无符号)
Definition mm_type.h:26
size_t usize_t
尺寸(无符号)
Definition mm_type.h:32
IO回调的接口
Definition mm_io.h:31
void * capture
上下文
Definition mm_io.h:36
MStrIOWrite io_write
写入数据callback
Definition mm_io.h:42