THRIFT-544. erl: multiple enums with the same key generate invalid code
authorBryan Duxbury <bryanduxbury@apache.org>
Fri, 10 Sep 2010 18:49:53 +0000 (18:49 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Fri, 10 Sep 2010 18:49:53 +0000 (18:49 +0000)
commit04650afb872fbf62dc31426d7278261bf178fc4f
tree39f0a128bea6cac2ee90f8df1634537e0883ec32
parent34628f3e7ae6f69bad0ce31af0e7008873839bd6
THRIFT-544. erl: multiple enums with the same key generate invalid code

This adds the enum name to the generated constants to avoid collisions.

Patch: Ben Taitelbaum

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@995924 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_erl_generator.cc