diff options
author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-06-11 06:54:14 +0100 |
---|---|---|
committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-06-11 06:54:14 +0100 |
commit | 83f318a284d71054604addd079f743971c58b9b1 (patch) | |
tree | 17f925ec954c722afd19ff8c4cc3bed6c92660ea /codegen.py | |
parent | 3a7339d288911c799308b2e11bf12c19fa18dfef (diff) | |
download | rabbitmq-server-83f318a284d71054604addd079f743971c58b9b1.tar.gz |
ifdefs surround ALL the specs
Diffstat (limited to 'codegen.py')
-rw-r--r-- | codegen.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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()", |