MCPcopy Create free account
hub / github.com/SamuraiT/mecab-python3 / SWIG_Python_ConvertPacked

Function SWIG_Python_ConvertPacked

src/MeCab/MeCab_wrap.cpp:2205–2217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2203/* Convert a packed pointer value */
2204
2205SWIGRUNTIME int
2206SWIG_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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected