403 |
* In the latter example @c customTypeName(true) would return for both |
* In the latter example @c customTypeName(true) would return for both |
404 |
* @c foo and @c pFoo the string @c "Foo" as return value of this method. |
* @c foo and @c pFoo the string @c "Foo" as return value of this method. |
405 |
* |
* |
406 |
|
* @b Windows: please note that the current implementation of this method |
407 |
|
* on Windows is @b not thread safe! |
408 |
|
* |
409 |
* @see isPointer(), baseTypeName() |
* @see isPointer(), baseTypeName() |
410 |
*/ |
*/ |
411 |
String DataType::customTypeName(bool demangle) const { |
String DataType::customTypeName(bool demangle) const { |
414 |
const size_t MAXLENGTH = 1024; |
const size_t MAXLENGTH = 1024; |
415 |
char result[MAXLENGTH]; |
char result[MAXLENGTH]; |
416 |
|
|
417 |
|
//FIXME: calling UnDecorateSymbolName() is not thread safe! |
418 |
//Skip the first char |
//Skip the first char |
419 |
size_t size = UnDecorateSymbolName(m_customTypeName.c_str() +1, result, MAXLENGTH, UNDNAME_32_BIT_DECODE | UNDNAME_NO_ARGUMENTS); |
size_t size = UnDecorateSymbolName(m_customTypeName.c_str() +1, result, MAXLENGTH, UNDNAME_32_BIT_DECODE | UNDNAME_NO_ARGUMENTS); |
420 |
if (size) |
if (size) |