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

Function SwigPyBuiltin_FunpackSetterClosure

src/MeCab/MeCab_wrap.cpp:2735–2751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2733}
2734
2735SWIGINTERN int
2736SwigPyBuiltin_FunpackSetterClosure (PyObject *obj, PyObject *val, void *closure) {
2737 SwigPyGetSet *getset;
2738 PyObject *result;
2739 if (!closure) {
2740 PyErr_Format(PyExc_TypeError, "Missing getset closure");
2741 return -1;
2742 }
2743 getset = (SwigPyGetSet *)closure;
2744 if (!getset->set) {
2745 PyErr_Format(PyExc_TypeError, "Illegal member variable assignment in type '%.300s'", obj->ob_type->tp_name);
2746 return -1;
2747 }
2748 result = (*getset->set)(obj, val);
2749 Py_XDECREF(result);
2750 return result ? 0 : -1;
2751}
2752
2753SWIGINTERN void
2754SwigPyStaticVar_dealloc(PyDescrObject *descr) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected