Fix SwigType_str so that should the name contain type information it is displayed correctly - noticeable in -debug-tmsearch and -debug-tmused
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11806 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
eb2e4a59d0
commit
d82621ca35
1 changed files with 4 additions and 1 deletions
|
|
@ -550,7 +550,10 @@ String *SwigType_str(SwigType *s, const_String_or_char_ptr id) {
|
||||||
int nelements, i;
|
int nelements, i;
|
||||||
|
|
||||||
if (id) {
|
if (id) {
|
||||||
result = NewString(id);
|
/* stringify the id expanding templates, for example when the id is a fully qualified templated class name */
|
||||||
|
String *id_str = NewString(id); /* unfortunate copy due to current const limitations */
|
||||||
|
result = SwigType_str(id_str, 0);
|
||||||
|
Delete(id_str);
|
||||||
} else {
|
} else {
|
||||||
result = NewStringEmpty();
|
result = NewStringEmpty();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue