better STL support, see CHANGES.current
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5755 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
958c18a14c
commit
1d5529bcfc
25 changed files with 3572 additions and 4193 deletions
|
|
@ -8,6 +8,7 @@
|
|||
* ISO C99: 7.3 Complex arithmetic <complex.h>
|
||||
*/
|
||||
|
||||
%fragment("<complex.h>","header")
|
||||
%{
|
||||
#include <complex.h>
|
||||
%}
|
||||
|
|
@ -25,15 +26,12 @@
|
|||
/* C complex constructor */
|
||||
#define CCplxConst(r, i) ((r) + I*(i))
|
||||
|
||||
%swig_cplxflt_conv(float_complex, CCplxFlt,
|
||||
CCplxConst, creal, cimag);
|
||||
|
||||
%swig_cplxdbl_conv(double_complex, CCplxDbl,
|
||||
CCplxConst, creal, cimag);
|
||||
%swig_cplxflt_convn(float_complex, CCplxConst, creal, cimag);
|
||||
%swig_cplxdbl_convn(double_complex, CCplxConst, creal, cimag);
|
||||
|
||||
/* declaring the typemaps */
|
||||
%typemap_stype(float_complex, CPLXFLT, CCplxFlt);
|
||||
%typemap_stype(double_complex, CPLXDBL, CCplxDbl);
|
||||
%typemap_primitive(SWIG_TYPECHECK_CPLXFLT, float_complex);
|
||||
%typemap_primitive(SWIG_TYPECHECK_CPLXDBL, double_complex);
|
||||
|
||||
%apply double_complex { complex };
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue