[PHP5] Fill in typemaps for SWIGTYPE and void * (SF#2095186).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10881 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1d9f63c873
commit
7ef2b73a6d
2 changed files with 14 additions and 5 deletions
|
|
@ -1,5 +1,8 @@
|
|||
Version 1.3.37 (in progress)
|
||||
=============================
|
||||
============================
|
||||
|
||||
2008-09-25: olly
|
||||
[PHP5] Fill in typemaps for SWIGTYPE and void * (SF#2095186).
|
||||
|
||||
2008-09-22: mutandiz (Mikel Bancroft)
|
||||
[allegrocl]
|
||||
|
|
|
|||
|
|
@ -110,6 +110,7 @@
|
|||
SWIG_PHP_Error(E_ERROR, "Type error in argument $argnum of $symname. Expected $&1_descriptor");
|
||||
}
|
||||
}
|
||||
|
||||
%typemap(argout) SWIGTYPE *,
|
||||
SWIGTYPE [],
|
||||
SWIGTYPE&;
|
||||
|
|
@ -264,19 +265,24 @@
|
|||
%php_typecheck(double,SWIG_TYPECHECK_BOOL,IS_DOUBLE)
|
||||
|
||||
%typecheck(SWIG_TYPECHECK_POINTER) SWIGTYPE
|
||||
" /* typecheck SWIGTYPE */ "
|
||||
{
|
||||
void *tmp;
|
||||
_v = (SWIG_ConvertPtr(*$input, (void **)&tmp, $&1_descriptor, 0) >= 0);
|
||||
}
|
||||
|
||||
%typecheck(SWIG_TYPECHECK_POINTER) SWIGTYPE *,
|
||||
SWIGTYPE [],
|
||||
SWIGTYPE &
|
||||
{
|
||||
void *tmp;
|
||||
_v = (SWIG_ConvertPtr( *$input, (void**)&tmp, $1_descriptor, 0) >= 0);
|
||||
_v = (SWIG_ConvertPtr(*$input, (void**)&tmp, $1_descriptor, 0) >= 0);
|
||||
}
|
||||
|
||||
%typecheck(SWIG_TYPECHECK_VOIDPTR) void *
|
||||
" /* typecheck void * */ "
|
||||
|
||||
{
|
||||
void *tmp;
|
||||
_v = (SWIG_ConvertPtr(*$input, (void**)&tmp, 0, 0) >= 0);
|
||||
}
|
||||
|
||||
/* Exception handling */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue