| 2710 | } |
| 2711 | |
| 2712 | SWIGINTERN int |
| 2713 | SwigPyBuiltin_SetterClosure (PyObject *obj, PyObject *val, void *closure) { |
| 2714 | SwigPyGetSet *getset; |
| 2715 | PyObject *tuple, *result; |
| 2716 | if (!closure) { |
| 2717 | PyErr_Format(PyExc_TypeError, "Missing getset closure"); |
| 2718 | return -1; |
| 2719 | } |
| 2720 | getset = (SwigPyGetSet *)closure; |
| 2721 | if (!getset->set) { |
| 2722 | PyErr_Format(PyExc_TypeError, "Illegal member variable assignment in type '%.300s'", obj->ob_type->tp_name); |
| 2723 | return -1; |
| 2724 | } |
| 2725 | tuple = PyTuple_New(1); |
| 2726 | assert(tuple); |
| 2727 | Py_INCREF(val); |
| 2728 | PyTuple_SET_ITEM(tuple, 0, val); |
| 2729 | result = (*getset->set)(obj, tuple); |
| 2730 | Py_DECREF(tuple); |
| 2731 | Py_XDECREF(result); |
| 2732 | return result ? 0 : -1; |
| 2733 | } |
| 2734 | |
| 2735 | SWIGINTERN int |
| 2736 | SwigPyBuiltin_FunpackSetterClosure (PyObject *obj, PyObject *val, void *closure) { |
nothing calls this directly
no outgoing calls
no test coverage detected