[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v6 09/15] qapi-introspect: add preprocessor cond
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH v6 09/15] qapi-introspect: add preprocessor conditions to generated QLit |
Date: |
Tue, 03 Jul 2018 17:08:05 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Markus Armbruster <address@hidden> writes:
[...]
> Let's add a hint to the commit message. Pergaps:
>
> qapi-introspect: add preprocessor conditions to generated QLit
>
> This commit adds 'ifcond' conditions to top-level QLit objects.
> Future work will add them to object and enum type members, i.e. within
> QLit objects.
>
> Extend the QLit generator to_qlit() to accept (@obj, @cond) tuples in
> addition to just @obj. The tuple causes the QLit generated for
> objects for @obj with #if/#endif conditions for @cond.
>
> See generated tests/test-qmp-introspect.c. Example diff after this
> patch:
> [...]
With that,
Reviewed-by: Markus Armbruster <address@hidden>