Static Public Member Functions | |
static int | asval (PyObject *obj, Type **val) |
Definition at line 3656 of file SyFi_wrap.cc.
static int swig::traits_asval< Type * >::asval | ( | PyObject * | obj, | |
Type ** | val | |||
) | [inline, static] |
Definition at line 3657 of file SyFi_wrap.cc.
References swig::traits_asptr< Type >::asptr(), SyFi::p, run_all::res, and SWIG_IsOK.
03657 { 03658 if (val) { 03659 typedef typename noconst_traits<Type>::noconst_type noconst_type; 03660 noconst_type *p = 0; 03661 int res = traits_asptr<noconst_type>::asptr(obj, &p); 03662 if (SWIG_IsOK(res)) { 03663 *(const_cast<noconst_type**>(val)) = p; 03664 } 03665 return res; 03666 } else { 03667 return traits_asptr<Type>::asptr(obj, (Type **)(0)); 03668 } 03669 }