xemu/scripts/qapi
Marc-André Lureau c3cd6aa020 qapi/events: add #if conditions to events
Wrap generated code with #if/#endif using an 'ifcontext' on
QAPIGenCSnippet objects.

This makes a conditional event's qapi_event_send_FOO() compile-time
conditional, but its enum QAPIEvent member remains unconditional for
now. A follow up patch "qapi-event: add 'if' condition to implicit
event enum" will improve this.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20180703155648.11933-11-marcandre.lureau@redhat.com>
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/events: add #if conditions to events 2018-07-03 18:38:54 +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