MCPcopy Create free account
hub / github.com/chokkan/crfsuite / SWIG_Python_DestroyModule

Function SWIG_Python_DestroyModule

swig/python/export_wrap.cpp:2683–2702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2681SWIG_Python_DestroyModule(PyObject *obj)
2682#else
2683SWIG_Python_DestroyModule(void *vptr)
2684#endif
2685{
2686#ifdef SWIGPY_USE_CAPSULE
2687 swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME);
2688#else
2689 swig_module_info *swig_module = (swig_module_info *) vptr;
2690#endif
2691 swig_type_info **types = swig_module->types;
2692 size_t i;
2693 for (i =0; i < swig_module->size; ++i) {
2694 swig_type_info *ty = types[i];
2695 if (ty->owndata) {
2696 SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
2697 if (data) SwigPyClientData_Del(data);
2698 }
2699 }
2700 Py_DECREF(SWIG_This());
2701 swig_this = NULL;
2702}
2703
2704SWIGRUNTIME void
2705SWIG_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