fix suggested casts for displaying SWIG types in a debugger

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11740 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2009-11-13 19:04:28 +00:00
commit 2bf42357e0

View file

@ -1070,25 +1070,25 @@ With each is the cast that can be used in the debugger to extract the underlying
<p> <p>
<li>String *s;</li> <li>String *s;</li>
<br> <br>
(String *)((DohBase *)s)-&gt;data (struct String *)((DohBase *)s)-&gt;data
<br> <br>
The underlying char * string can be displayed with The underlying char * string can be displayed with
<br> <br>
((String *)((DohBase *)s)-&gt;data)-&gt;str (*(struct String *)(((DohBase *)s)-&gt;data)).str
<p> <p>
<li>SwigType *t;</li> <li>SwigType *t;</li>
<br> <br>
(String *)((DohBase *)t)-&gt;data (struct String *)((DohBase *)t)-&gt;data
<br> <br>
The underlying char * string can be displayed with The underlying char * string can be displayed with
<br> <br>
((String *)((DohBase *)t)-&gt;data)-&gt;str (*(struct String *)(((DohBase *)t)-&gt;data)).str
<p> <p>
<li>String_or_char *sc;</li> <li>const_String_or_char_ptr sc;</li>
Either <br> Either <br>
((String *)((DohBase *)sc)-&gt;data)-&gt;str (*(struct String *)(((DohBase *)sc)-&gt;data)).str
<br> or <br> <br> or <br>
(char *)sc (char *)sc
<br> will work depending on whether the underlying type is really a String * or char *. <br> will work depending on whether the underlying type is really a String * or char *.