diff options
Diffstat (limited to 'cpp/rubygen/framing.0-10')
-rw-r--r-- | cpp/rubygen/framing.0-10/structs.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cpp/rubygen/framing.0-10/structs.rb b/cpp/rubygen/framing.0-10/structs.rb index 35e7717122..e97b6311a2 100644 --- a/cpp/rubygen/framing.0-10/structs.rb +++ b/cpp/rubygen/framing.0-10/structs.rb @@ -107,9 +107,17 @@ class StructGen < CppGen end def print_packed_field(s, f, i) + classname = s.cppname + if (s.kind_of? AmqpMethod) + classname = s.body_name + end genl "if (flags & #{flag_mask(s, i)})" indent { - genl "out << \"#{f.name}=\" << #{printable_form(f)} << \"; \";" + unless (classname == "ConnectionStartOkBody" && f.name == "response") + genl "out << \"#{f.name}=\" << #{printable_form(f)} << \"; \";" + else + genl "out << \"response=\" << \"xxxxxx\" << \"; \";" + end } end |