qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2 39/54] qapi: add #if conditions to generated alte


From: Marc-André Lureau
Subject: [Qemu-devel] [PATCH v2 39/54] qapi: add #if conditions to generated alternate variants
Date: Tue, 22 Aug 2017 15:22:40 +0200

Mostly covered by previous patches already.

Signed-off-by: Marc-André Lureau <address@hidden>
---
 scripts/qapi-introspect.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/qapi-introspect.py b/scripts/qapi-introspect.py
index 5cd2a3fe3f..ed00005894 100644
--- a/scripts/qapi-introspect.py
+++ b/scripts/qapi-introspect.py
@@ -168,7 +168,7 @@ const QLitObject %(c_name)s = %(c_string)s;
 
     def visit_alternate_type(self, name, info, variants, ifcond):
         self._gen_qlit(name, 'alternate',
-                       {'members': [{'type': self._use_type(m.type)}
+                       {'members': [({'type': self._use_type(m.type)}, 
m.ifcond)
                                     for m in variants.variants]}, ifcond)
 
     def visit_command(self, name, info, arg_type, ret_type,
-- 
2.14.1.146.gd35faa819




reply via email to

[Prev in Thread] Current Thread [Next in Thread]