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

Function SWIG_Python_DestroyModule

src/MeCab/MeCab_wrap.cpp:2403–2418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2401}
2402
2403SWIGRUNTIME void
2404SWIG_Python_DestroyModule(PyObject *obj)
2405{
2406 swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME);
2407 swig_type_info **types = swig_module->types;
2408 size_t i;
2409 for (i =0; i < swig_module->size; ++i) {
2410 swig_type_info *ty = types[i];
2411 if (ty->owndata) {
2412 SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
2413 if (data) SwigPyClientData_Del(data);
2414 }
2415 }
2416 Py_DECREF(SWIG_This());
2417 Swig_This_global = NULL;
2418}
2419
2420SWIGRUNTIME void
2421SWIG_Python_SetModule(swig_module_info *swig_module) {

Callers

nothing calls this directly

Calls 2

SwigPyClientData_DelFunction · 0.85
SWIG_ThisFunction · 0.85

Tested by

no test coverage detected