[libvirt] [PATCH 01/15] util: Introduce VIR_DEFINE_AUTOPTR_FUNC for virStorageAuthDef

Andrea Bolognani abologna at redhat.com
Thu Feb 7 16:11:24 UTC 2019


On Thu, 2019-02-07 at 16:55 +0100, Erik Skultety wrote:
> On Thu, Feb 07, 2019 at 04:24:13PM +0100, Andrea Bolognani wrote:
> > Please keep the semicolon! If a macro is used like a function, then
> > its call sites should also look like those of a function.
> 
> Except VIR_DEFINE_AUTOPTR_FUNC macro is not used like a function, it defines a
> function.

Sure, and the way you make that happen is by writing

  MACRO_NAME(argument_one, argument_two);

How is that not using it like a function? :)

-- 
Andrea Bolognani / Red Hat / Virtualization




More information about the libvir-list mailing list