qemu-e2k/docs/devel
Marc-André Lureau 967c885108 qapi: add 'if' to top-level expressions
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>
2018-07-03 18:21:24 +02:00
..
atomics.txt docs: document atomic_load_acquire and atomic_store_release 2018-03-12 16:12:47 +01:00
blkdebug.txt
blkverify.txt
build-system.txt build-sys: add a rule to print a variable 2018-01-12 13:22:02 +01:00
loads-stores.rst bswap: Add new stn_*_p() and ldn_*_p() memory access functions 2018-06-15 15:23:34 +01:00
lockcnt.txt docs: fix broken paths to docs/devel/atomics.txt 2017-07-31 13:12:47 +03:00
memory.txt memory: get rid of memory_region_init_reservation 2018-06-01 14:15:10 +02:00
migration.rst migration: update docs 2018-05-15 22:13:08 +02:00
multi-thread-tcg.txt tcg: remove tb_lock 2018-06-15 08:18:48 -10:00
multiple-iothreads.txt docs: mark nested AioContext locking as a legacy API 2017-12-19 10:25:09 +00:00
qapi-code-gen.txt qapi: add 'if' to top-level expressions 2018-07-03 18:21:24 +02:00
rcu.txt
stable-process.rst docs: document our stable process 2018-02-19 10:51:16 +01:00
testing.rst Add functional/acceptance tests infrastructure 2018-06-15 16:10:11 -03:00
tracing.txt trace: forbid floating point types 2018-06-27 11:09:29 +01:00
virtio-migration.txt
writing-qmp-commands.txt qapi: Move qapi-schema.json to qapi/, rename generated files 2018-03-02 13:45:57 -06:00