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
|
|
@ -47,8 +47,12 @@ extern "C" {
|
|||
if (dest_type != source_type) {
|
||||
/* We have a type mismatch. Will have to look through our type
|
||||
mapping table to figure out whether or not we can accept this
|
||||
datatype. */
|
||||
if( !dest_type || !source_type ) {
|
||||
datatype.
|
||||
--
|
||||
Ignore typechecks for void *. Allow any conversion. */
|
||||
if( !dest_type || !source_type ||
|
||||
!strcmp(dest_type->name,"_p_void") ||
|
||||
!strcmp(source_type->name,"_p_void") ) {
|
||||
*ptr = source;
|
||||
return 0;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue