qemu/scripts/qapi
Marc-André Lureau 1f7b9f3181 qapi/commands: add #if conditions to commands
Wrap generated code with #if/#endif using an 'ifcontext' on
QAPIGenCSnippet objects.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20180703155648.11933-10-marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[Line breaks tweaked]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2018-07-03 18:38:54 +02:00
..
__init__.py qapi-gen: New common driver for code and doc generators 2018-03-02 13:14:09 -06:00
commands.py qapi/commands: add #if conditions to commands 2018-07-03 18:38:54 +02:00
common.py qapi: add #if/#endif helpers 2018-07-03 18:38:53 +02:00
doc.py qapi: add 'ifcond' to visitor methods 2018-07-03 18:38:53 +02:00
events.py qapi: add 'ifcond' to visitor methods 2018-07-03 18:38:53 +02:00
introspect.py qapi-introspect: add preprocessor conditions to generated QLit 2018-07-03 18:38:54 +02:00
types.py qapi: add 'ifcond' to visitor methods 2018-07-03 18:38:53 +02:00
visit.py qapi: add 'ifcond' to visitor methods 2018-07-03 18:38:53 +02:00