Re: [Qemu-devel] [PATCH v4 05/51] qapi: add 'if' to top-level expressions

2018-02-04 Thread Markus Armbruster
Marc-André Lureau writes: > Accept 'if' key in top-level elements, accepted as string or list of > string type. The following patches will modify the test visitor to > check the value is correctly saved, and generate #if/#endif code (as a > single #if/endif line or a series for a list). > > Examp

[Qemu-devel] [PATCH v4 05/51] qapi: add 'if' to top-level expressions

2018-01-11 Thread Marc-André Lureau
Accept 'if' key in top-level elements, accepted as string or list of string type. The following patches will modify the test visitor to check the value is correctly saved, and generate #if/#endif code (as a single #if/endif line or a series for a list). Example of 'if' key: { 'struct': 'TestIfStru