| 2203 | /* Convert a packed pointer value */ |
| 2204 | |
| 2205 | SWIGRUNTIME int |
| 2206 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { |
| 2207 | swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz); |
| 2208 | if (!to) return SWIG_ERROR; |
| 2209 | if (ty) { |
| 2210 | if (to != ty) { |
| 2211 | /* check type cast? */ |
| 2212 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); |
| 2213 | if (!tc) return SWIG_ERROR; |
| 2214 | } |
| 2215 | } |
| 2216 | return SWIG_OK; |
| 2217 | } |
| 2218 | |
| 2219 | /* ----------------------------------------------------------------------------- |
| 2220 | * Create a new pointer object |
nothing calls this directly
no outgoing calls
no test coverage detected