| 418 | } |
| 419 | |
| 420 | inline void add_patient(PyObject *nurse, PyObject *patient) { |
| 421 | auto *instance = reinterpret_cast<detail::instance *>(nurse); |
| 422 | instance->has_patients = true; |
| 423 | Py_INCREF(patient); |
| 424 | |
| 425 | with_internals([&](internals &internals) { internals.patients[nurse].push_back(patient); }); |
| 426 | } |
| 427 | |
| 428 | inline void clear_patients(PyObject *self) { |
| 429 | auto *instance = reinterpret_cast<detail::instance *>(self); |
no test coverage detected