Added sizeof operator for classes (and struct, unions), enabled with
"sizeof"="1" on the module node. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5370 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
173fdb31bd
commit
cab8fc7fb9
3 changed files with 182 additions and 37 deletions
|
|
@ -519,6 +519,8 @@ provided by SWIG: (all of these take no arguments (C_void))
|
|||
<tr><td>"~"</td><td>Delete this object</td></tr>
|
||||
<tr><td>"&"</td><td>Return an ordinary C_ptr value representing this
|
||||
object's address</td></tr>
|
||||
<tr><td>"sizeof"</td><td>If enabled with ("sizeof"="1") on the module node,
|
||||
return the object's size in char.</td></tr>
|
||||
<tr><td>":methods"</td><td>Returns a list of strings containing the names of
|
||||
the methods this object contains</td></tr>
|
||||
<tr><td>":classof"</td><td>Returns the name of the class this object belongs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue