mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Cleanup
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@511 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
7ed1b9ed51
commit
3d9f097259
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue