Re: [Qemu-devel] [PATCH for-4.0 v7 19/27] qapi: add 'if' to alternate members

2018-12-11 Thread Markus Armbruster
Marc-André Lureau writes: > Add 'if' key to alternate members: > > { 'alternate': 'TestIfAlternate', 'data': > { 'alt': { 'type': 'TestStruct', 'if': 'COND' } } } > > Generated code is not changed by this patch but with "qapi: add #if > conditions to generated code". > > Signed-off-by: Marc-And

[Qemu-devel] [PATCH for-4.0 v7 19/27] qapi: add 'if' to alternate members

2018-12-08 Thread Marc-André Lureau
Add 'if' key to alternate members: { 'alternate': 'TestIfAlternate', 'data': { 'alt': { 'type': 'TestStruct', 'if': 'COND' } } } Generated code is not changed by this patch but with "qapi: add #if conditions to generated code". Signed-off-by: Marc-André Lureau --- scripts/qapi/common.py