You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by dr...@apache.org on 2010/08/31 00:05:28 UTC

svn commit: r990978 - /incubator/thrift/trunk/compiler/cpp/src/generate/t_erl_generator.cc

Author: dreiss
Date: Mon Aug 30 22:05:27 2010
New Revision: 990978

URL: http://svn.apache.org/viewvc?rev=990978&view=rev
Log:
erlang: Make the gen-code return a special value for bogus functions

Modified:
    incubator/thrift/trunk/compiler/cpp/src/generate/t_erl_generator.cc

Modified: incubator/thrift/trunk/compiler/cpp/src/generate/t_erl_generator.cc
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/compiler/cpp/src/generate/t_erl_generator.cc?rev=990978&r1=990977&r2=990978&view=diff
==============================================================================
--- incubator/thrift/trunk/compiler/cpp/src/generate/t_erl_generator.cc (original)
+++ incubator/thrift/trunk/compiler/cpp/src/generate/t_erl_generator.cc Mon Aug 30 22:05:27 2010
@@ -649,8 +649,8 @@ void t_erl_generator::generate_service_i
                          << "_thrift:function_info(Function, InfoType)." << endl;
       indent_down();
   } else {
-      // Dummy function_info so we don't worry about the ;s
-      indent(f_service_) << "function_info(xxx, dummy) -> dummy." << endl;
+      // Use a special return code for nonexistent functions
+      indent(f_service_) << "function_info(_Func, _Info) -> no_function." << endl;
   }
 
   indent(f_service_) << endl;