Re: [Qemu-devel] [PATCH v4 10/51] qapi: add #if/#endif helpers

2018-02-04 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 v4 10/51] qapi: add #if/#endif helpers

2018-01-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 | 47 +