git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@511 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2012-07-22 07:13:31 +00:00
parent 7ed1b9ed51
commit 3d9f097259

View file

@ -38,9 +38,8 @@ namespace detail
{ {
const char* name = info.name(); const char* name = info.name();
#ifdef __GNUC__ #ifdef __GNUC__
size_t size = 0;
int status = 0; int status = 0;
char* result = abi::__cxa_demangle( name, NULL, &size, &status ); char* result = abi::__cxa_demangle( name, NULL, 0, &status );
struct guard struct guard
{ {
explicit guard( char* p ) explicit guard( char* p )
@ -53,7 +52,7 @@ namespace detail
private: private:
char* p_; char* p_;
} g( result ); } g( result );
if( result ) if( ! status && result )
serialize( s, result ); serialize( s, result );
else else
#endif #endif