967c885108
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': 'TestIfStruct', 'data': { 'foo': 'int' }, 'if': 'defined(TEST_IF_STRUCT)' } The generated code is for now *unconditional*. Later patches generate the conditionals. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20180703155648.11933-2-marcandre.lureau@redhat.com> [Commit message and Documentation improved] Signed-off-by: Markus Armbruster <armbru@redhat.com> |
||
---|---|---|
.. | ||
atomics.txt | ||
blkdebug.txt | ||
blkverify.txt | ||
build-system.txt | ||
loads-stores.rst | ||
lockcnt.txt | ||
memory.txt | ||
migration.rst | ||
multi-thread-tcg.txt | ||
multiple-iothreads.txt | ||
qapi-code-gen.txt | ||
rcu.txt | ||
stable-process.rst | ||
testing.rst | ||
tracing.txt | ||
virtio-migration.txt | ||
writing-qmp-commands.txt |