|
From: Steve M. R. <st...@su...> - 2006-12-01 18:37:08
|
Hello,
For the opaque "C pointer holder" types like SWIGTYPE_p_char, I'd like
to have a nice Java toString() method. For example, something like
the following:
public String toString()
{
return "SWIGTYPE_p_char<0x" + Long.toHexString( getCPtr( this ) ) + ">";
}
I know how to do this using %extend. However, since there are a lot
of SWIGTYPE_p_ types being generated, it makes more sense to have swig
do it automatically.
Comments?
-Steve
|