Re: [Qemu-devel] [PATCH v3 11/49] qapi/commands: add #if conditions to commands

2018-06-25 Thread Markus Armbruster
Markus Armbruster writes: > Marc-André Lureau writes: > >> Wrap generated code with #if/#endif using an 'ifcontext' on >> QAPIGenCSnippet objects. >> >> Signed-off-by: Marc-André Lureau >> --- >> scripts/qapi/commands.py | 19 ++- >> tests/test-qmp-cmds.c| 4 ++-- >> 2 fil

Re: [Qemu-devel] [PATCH v3 11/49] qapi/commands: add #if conditions to commands

2018-06-22 Thread Markus Armbruster
Marc-André Lureau writes: > Wrap generated code with #if/#endif using an 'ifcontext' on > QAPIGenCSnippet objects. > > Signed-off-by: Marc-André Lureau > --- > scripts/qapi/commands.py | 19 ++- > tests/test-qmp-cmds.c| 4 ++-- > 2 files changed, 12 insertions(+), 11 deleti

Re: [Qemu-devel] [PATCH v3 11/49] qapi/commands: add #if conditions to commands

2018-06-21 Thread Markus Armbruster
Marc-André Lureau writes: > Wrap generated code with #if/#endif using an 'ifcontext' on > QAPIGenCSnippet objects. > > Signed-off-by: Marc-André Lureau > --- > scripts/qapi/commands.py | 19 ++- > tests/test-qmp-cmds.c| 4 ++-- > 2 files changed, 12 insertions(+), 11 deleti

[Qemu-devel] [PATCH v3 11/49] qapi/commands: add #if conditions to commands

2018-03-21 Thread Marc-André Lureau
Wrap generated code with #if/#endif using an 'ifcontext' on QAPIGenCSnippet objects. Signed-off-by: Marc-André Lureau --- scripts/qapi/commands.py | 19 ++- tests/test-qmp-cmds.c| 4 ++-- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/scripts/qapi/commands.