qapi-types: add #if conditions to types & visitors
authorMarkus Armbruster <armbru@redhat.com>
Tue, 3 Jul 2018 15:56:45 +0000 (17:56 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 3 Jul 2018 16:38:53 +0000 (18:38 +0200)
commit9f88c66211342714b06c051140fd64ffd338dbe1
tree3a33dedfb53b3bbed7d605bf76f5daf8cdf77c97
parentc3cd6aa0201c126eda8dc71b60e7aa259a3e79b9
qapi-types: add #if conditions to types & visitors

Types & visitors are coupled and must be handled together to avoid
temporary build regression.

Wrap generated types/visitor code with #if/#endif using the context
helpers. Derived from a patch by Marc-AndrĂ©.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20180703155648.11933-12-marcandre.lureau@redhat.com>
scripts/qapi/types.py
scripts/qapi/visit.py