| 77 | } |
| 78 | static void DelPyObject(PyObject *py, refcountedType *c) { obj2py<refcountedType>().erase(c); } |
| 79 | static void Dec(const refcountedType *c) |
| 80 | { |
| 81 | auto it = obj2py<refcountedType>().find(c); |
| 82 | if(it != obj2py<refcountedType>().end()) |
| 83 | Py_DecRef(it->second); |
| 84 | } |
| 85 | static void Inc(const refcountedType *c) |
| 86 | { |
| 87 | auto it = obj2py<refcountedType>().find(c); |