Skip to content

Instantly share code, notes, and snippets.

@arreyder
Created April 16, 2011 16:49
Show Gist options
  • Save arreyder/923273 to your computer and use it in GitHub Desktop.
Save arreyder/923273 to your computer and use it in GitHub Desktop.
--- compiler/cpp/src/generate/t_cpp_generator.cc 2011-01-30 19:13:15.000000000 -0600
+++ ../pkg-build/thrift-0.6.0/compiler/cpp/src/generate/t_cpp_generator.cc 2011-03-31 12:47:17.733182513 -0500
@@ -506,7 +506,11 @@
/**
Generate a character array of enum names for debugging purposes.
*/
- std::string prefix = tenum->get_name() + "::";
+ std::string prefix = "";
+ if (!gen_pure_enums_) {
+ prefix = tenum->get_name() + "::";
+ }
+
f_types_impl_ <<
indent() << "int _k" << tenum->get_name() << "Values[] =";
generate_enum_constant_list(f_types_impl_, constants, prefix.c_str(), "", false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment