diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2009-11-13 19:04:28 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2009-11-13 19:04:28 +0000 |
commit | 2bf42357e0e420d024b7a3628d997cd8e93907ae (patch) | |
tree | 54e7ad579df32dd4f7b01d6209e2b69b5443df9e /Doc/Devel | |
parent | cd53dc68eeb48fab248fdea57293c75ececa4e86 (diff) | |
download | swig-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.html | 12 |
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)->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 *. |