Added for Python 3.x, would it also be useful for Python 2.x? */
| 1630 | |
| 1631 | /* Added for Python 3.x, would it also be useful for Python 2.x? */ |
| 1632 | SWIGRUNTIME PyObject* |
| 1633 | SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op) |
| 1634 | { |
| 1635 | PyObject* res; |
| 1636 | if( op != Py_EQ && op != Py_NE ) { |
| 1637 | Py_INCREF(Py_NotImplemented); |
| 1638 | return Py_NotImplemented; |
| 1639 | } |
| 1640 | res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0); |
| 1641 | return res; |
| 1642 | } |
| 1643 | |
| 1644 | |
| 1645 | SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void); |
nothing calls this directly
no test coverage detected