Re: [Qemu-devel] [PATCH v3 09/50] qapi: add #if/#endif helpers

2018-01-11 Thread Marc-André Lureau
Hi On Thu, Dec 7, 2017 at 3:10 PM, Markus Armbruster wrote: > Marc-André Lureau writes: > >> Add helpers to wrap generated code with #if/#endif lines. >> >> Add a function decorator that will be used to wrap visitor methods. >> The decorator will check if code was generated before adding #if/#en

Re: [Qemu-devel] [PATCH v3 09/50] qapi: add #if/#endif helpers

2017-12-07 Thread Markus Armbruster
Marc-André Lureau writes: > Add helpers to wrap generated code with #if/#endif lines. > > Add a function decorator that will be used to wrap visitor methods. > The decorator will check if code was generated before adding #if/#endif > lines. Used in the following patches. > > Signed-off-by: Marc-A

[Qemu-devel] [PATCH v3 09/50] qapi: add #if/#endif helpers

2017-09-11 Thread Marc-André Lureau
Add helpers to wrap generated code with #if/#endif lines. Add a function decorator that will be used to wrap visitor methods. The decorator will check if code was generated before adding #if/#endif lines. Used in the following patches. Signed-off-by: Marc-André Lureau --- scripts/qapi.py | 55 +