aboutsummaryrefslogtreecommitdiff
path: root/Doc/Devel
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2009-11-13 19:04:28 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2009-11-13 19:04:28 +0000
commit2bf42357e0e420d024b7a3628d997cd8e93907ae (patch)
tree54e7ad579df32dd4f7b01d6209e2b69b5443df9e /Doc/Devel
parentcd53dc68eeb48fab248fdea57293c75ececa4e86 (diff)
downloadswig-2bf42357e0e420d024b7a3628d997cd8e93907ae.tar.gz
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
Diffstat (limited to 'Doc/Devel')
-rw-r--r--Doc/Devel/internals.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/Devel/internals.html b/Doc/Devel/internals.html
index d27ec12fa..63a8626ff 100644
--- a/Doc/Devel/internals.html
+++ b/Doc/Devel/internals.html
@@ -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)-&gt;data
+(struct String *)((DohBase *)s)-&gt;data
<br>
The underlying char * string can be displayed with
<br>
-((String *)((DohBase *)s)-&gt;data)-&gt;str
+(*(struct String *)(((DohBase *)s)-&gt;data)).str
<p>
<li>SwigType *t;</li>
<br>
-(String *)((DohBase *)t)-&gt;data
+(struct String *)((DohBase *)t)-&gt;data
<br>
The underlying char * string can be displayed with
<br>
-((String *)((DohBase *)t)-&gt;data)-&gt;str
+(*(struct String *)(((DohBase *)t)-&gt;data)).str
<p>
-<li>String_or_char *sc;</li>
+<li>const_String_or_char_ptr sc;</li>
Either <br>
-((String *)((DohBase *)sc)-&gt;data)-&gt;str
+(*(struct String *)(((DohBase *)sc)-&gt;data)).str
<br> or <br>
(char *)sc
<br> will work depending on whether the underlying type is really a String * or char *.