From d82621ca351e00f2fb5817ab89c3391cc03df325 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 8 Jan 2010 18:42:31 +0000 Subject: [PATCH] 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 --- Source/Swig/stype.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Swig/stype.c b/Source/Swig/stype.c index aa5d448a3..707232558 100644 --- a/Source/Swig/stype.c +++ b/Source/Swig/stype.c @@ -550,7 +550,10 @@ String *SwigType_str(SwigType *s, const_String_or_char_ptr id) { int nelements, i; 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 { result = NewStringEmpty(); }