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:
parent
cd53dc68ee
commit
2bf42357e0
1 changed files with 6 additions and 6 deletions
|
|
@ -1070,25 +1070,25 @@ With each is the cast that can be used in the debugger to extract the underlying
|
|||
<p>
|
||||
<li>String *s;</li>
|
||||
<br>
|
||||
(String *)((DohBase *)s)->data
|
||||
(struct String *)((DohBase *)s)->data
|
||||
<br>
|
||||
The underlying char * string can be displayed with
|
||||
<br>
|
||||
((String *)((DohBase *)s)->data)->str
|
||||
(*(struct String *)(((DohBase *)s)->data)).str
|
||||
|
||||
<p>
|
||||
<li>SwigType *t;</li>
|
||||
<br>
|
||||
(String *)((DohBase *)t)->data
|
||||
(struct String *)((DohBase *)t)->data
|
||||
<br>
|
||||
The underlying char * string can be displayed with
|
||||
<br>
|
||||
((String *)((DohBase *)t)->data)->str
|
||||
(*(struct String *)(((DohBase *)t)->data)).str
|
||||
|
||||
<p>
|
||||
<li>String_or_char *sc;</li>
|
||||
<li>const_String_or_char_ptr sc;</li>
|
||||
Either <br>
|
||||
((String *)((DohBase *)sc)->data)->str
|
||||
(*(struct String *)(((DohBase *)sc)->data)).str
|
||||
<br> or <br>
|
||||
(char *)sc
|
||||
<br> will work depending on whether the underlying type is really a String * or char *.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue