summaryrefslogtreecommitdiff
path: root/cpp/rubygen/templates/constants.rb
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/rubygen/templates/constants.rb')
-rwxr-xr-xcpp/rubygen/templates/constants.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/rubygen/templates/constants.rb b/cpp/rubygen/templates/constants.rb
index 7e212bd38a..45efb35353 100755
--- a/cpp/rubygen/templates/constants.rb
+++ b/cpp/rubygen/templates/constants.rb
@@ -14,7 +14,7 @@ class ConstantsGen < CppGen
h_file("#{@dir}/constants") {
namespace(@namespace) {
@amqp.constants.each { |c|
- genl "inline const int #{c.name.shout} = #{c.value};"
+ genl "enum { #{c.name.shout} = #{c.value} };"
}
}
}