提交 786f4741 编写于 作者: P Peter Krempa

util: alloc: Clarify docs for VIR_DEFINE_AUTOCLEAN_FUNC

Document that @func must take pointer to @type.
Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 0278c77d
......@@ -623,8 +623,8 @@ void virAllocTestHook(void (*func)(int, void*), void *data);
* @func: cleanup function to be automatically called
*
* This macro defines a function for automatic clearing of
* resources in a stack'd variable of type @type. This newly
* defined function works as a necessary wrapper around @func.
* resources in a stack'd variable of type @type. Note that @func must
* take pointer to @type.
*/
# define VIR_DEFINE_AUTOCLEAN_FUNC(type, func) \
static inline void VIR_AUTOCLEAN_FUNC_NAME(type)(type *_ptr) \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册