summaryrefslogtreecommitdiff
path: root/codegen.py
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2010-06-11 06:54:14 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2010-06-11 06:54:14 +0100
commit83f318a284d71054604addd079f743971c58b9b1 (patch)
tree17f925ec954c722afd19ff8c4cc3bed6c92660ea /codegen.py
parent3a7339d288911c799308b2e11bf12c19fa18dfef (diff)
downloadrabbitmq-server-83f318a284d71054604addd079f743971c58b9b1.tar.gz
ifdefs surround ALL the specs
Diffstat (limited to 'codegen.py')
-rw-r--r--codegen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/codegen.py b/codegen.py
index 2232a670..e506703d 100644
--- a/codegen.py
+++ b/codegen.py
@@ -416,6 +416,7 @@ def genHrl(spec):
for (c,v,cls) in spec.constants:
print "-define(%s, %s)." % (erlangConstantName(c), v)
+ print "-ifdef(use_specs)"
print "%% Method field records."
for m in methods:
print "-record(%s, {%s})." % (m.erlangName(), fieldNameListDefaults(m.arguments))
@@ -425,7 +426,6 @@ def genHrl(spec):
print "-record('P_%s', {%s})." % (erlangize(c.name), fieldNameList(c.fields))
print "%% Various types"
- print "-ifdef(use_specs)."
print prettyType("amqp_method_name()",
[m.erlangName() for m in methods])
print prettyType("amqp_method()",