qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v8 00/22] qapi: add #if pre-processor conditions


From: Marc-André Lureau
Subject: Re: [Qemu-devel] [PATCH v8 00/22] qapi: add #if pre-processor conditions to generated code (part 2)
Date: Thu, 13 Dec 2018 18:52:06 +0400

Hi

On Thu, Dec 13, 2018 at 6:49 PM Markus Armbruster <address@hidden> wrote:
>
> Marc-André Lureau <address@hidden> writes:
>
> > This is the second part of the "add #if pre-processor conditions to
> > generated code" series, adding schema member conditions (roughly
> > 16-38/49).
> >
> > Members can be exploded as dictionnary with 'type'/'if' keys:
> >
> > { 'struct': 'TestIfStruct', 'data':
> >   { 'foo': 'int',
> >     'bar': { 'type': 'int', 'if': 'defined(TEST_IF_STRUCT_BAR)'} } }
> >
> > Enum values can be exploded as dictionnary with 'type'/'if' keys:
> >
> > { 'enum': 'TestIfEnum', 'data':
> >   [ 'foo',
> >     { 'name' : 'bar', 'if': 'defined(TEST_IF_ENUM_BAR)' } ] }
> >
> > Based-on: git://repo.or.cz/qemu/armbru.git qapi-next
>
> I found nothing I can't easily tidy up when I apply.  Thanks!
>

Cool, thanks! I can prepare part 3 :)

-- 
Marc-André Lureau



reply via email to

[Prev in Thread] Current Thread [Next in Thread]