mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 12:23:53 -06:00
qapi: allow a 'gen' key to suppress code generation
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
83e94fb8d5
commit
5dbee474f3
2 changed files with 2 additions and 0 deletions
|
@ -238,6 +238,7 @@ fdecl.write(mcgen('''
|
|||
guard=guardname(h_file)))
|
||||
|
||||
exprs = parse_schema(sys.stdin)
|
||||
exprs = filter(lambda expr: not expr.has_key('gen'), exprs)
|
||||
|
||||
for expr in exprs:
|
||||
ret = "\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue