diff options
author | Markus Armbruster | 2021-08-31 14:37:58 +0200 |
---|---|---|
committer | Markus Armbruster | 2021-09-03 17:06:40 +0200 |
commit | 1889e57a7140c4f89c8fd9a217f8c3845eb48b5b (patch) | |
tree | 86307aa6c4f5b872aeaaf0ce760566c579c1c43c /scripts/qapi/source.py | |
parent | qapi: Set boolean value correctly in examples (diff) | |
download | qemu-1889e57a7140c4f89c8fd9a217f8c3845eb48b5b.tar.gz qemu-1889e57a7140c4f89c8fd9a217f8c3845eb48b5b.tar.xz qemu-1889e57a7140c4f89c8fd9a217f8c3845eb48b5b.zip |
qapi: Simplify QAPISchemaIfCond's interface for generating C
QAPISchemaIfCond.cgen() is only ever used like
gen_if(ifcond.cgen())
and
gen_endif(ifcond.cgen())
Simplify to
ifcond.gen_if()
and
ifcond.gen_endif()
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20210831123809.1107782-2-armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
[Import statements tidied up with isort]
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions