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 | ec874df3e7eebf632f48e8f05680c98d87d97ecf (patch) | |
| tree | 17f925ec954c722afd19ff8c4cc3bed6c92660ea | |
| parent | ffd25861078925bf75a1e3a7a4401369d6272284 (diff) | |
| download | rabbitmq-server-git-ec874df3e7eebf632f48e8f05680c98d87d97ecf.tar.gz | |
ifdefs surround ALL the specs
| -rw-r--r-- | codegen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/codegen.py b/codegen.py index 2232a67059..e506703dea 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()", |
