Re: [Qemu-devel] [PATCH for-4.0 v7 21/27] qapi: add #if conditions to generated code members

2018-12-11 Thread Markus Armbruster
Marc-André Lureau writes: > Wrap generated enum/struct members and code with #if/#endif, using the > .ifcond members added in the previous patches. > > Some types generate both enum and struct members for example, so a > step-by-step is unnecessarily complicated to deal with (it would > easily ge

[Qemu-devel] [PATCH for-4.0 v7 21/27] qapi: add #if conditions to generated code members

2018-12-08 Thread Marc-André Lureau
Wrap generated enum/struct members and code with #if/#endif, using the .ifcond members added in the previous patches. Some types generate both enum and struct members for example, so a step-by-step is unnecessarily complicated to deal with (it would easily generate invalid intermediary code). Sig