summaryrefslogtreecommitdiff
path: root/cpp/rubygen/cppgen.rb
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-09-16 00:22:00 +0000
committerAlan Conway <aconway@apache.org>2008-09-16 00:22:00 +0000
commit4325bf519604230227647c229931049fc2d89ab9 (patch)
tree6793eeef895c93caf7ce88e9a99747b13db334e9 /cpp/rubygen/cppgen.rb
parenteb41bbd1ff549a62b69d4ede4e2323e1427f5ece (diff)
downloadqpid-python-4325bf519604230227647c229931049fc2d89ab9.tar.gz
Simplified cluster updates.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@695696 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/rubygen/cppgen.rb')
-rwxr-xr-xcpp/rubygen/cppgen.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/rubygen/cppgen.rb b/cpp/rubygen/cppgen.rb
index 3a4228567a..13f6f3744d 100755
--- a/cpp/rubygen/cppgen.rb
+++ b/cpp/rubygen/cppgen.rb
@@ -118,6 +118,7 @@ class AmqpRoot
# preview; map 0-10 types to preview code generator types
@@typemap = {
"bit"=> CppType.new("bool").code("Octet").defval("false"),
+ "boolean"=> CppType.new("bool").code("Octet").defval("false"),
"uint8"=>CppType.new("uint8_t").code("Octet").defval("0"),
"uint16"=>CppType.new("uint16_t").code("Short").defval("0"),
"uint32"=>CppType.new("uint32_t").code("Long").defval("0"),
@@ -189,7 +190,7 @@ class AmqpField
c=containing_class
c.struct(type_)
end
- def cpptype() lookup_cpptype(type_) or raise "no cpptype #{self}" end
+ def cpptype() lookup_cpptype(type_) or raise "no cpptype #{type_} for field #{self}" end
def cppname() name.lcaps.cppsafe; end
def bit?() type_ == "bit"; end
def signature() cpptype.param+" "+cppname; end