| 18 | */ |
| 19 | |
| 20 | int |
| 21 | F2PyDict_SetItemString(PyObject *dict, char *name, PyObject *obj) |
| 22 | { |
| 23 | if (obj == NULL) { |
| 24 | fprintf(stderr, "Error loading %s\n", name); |
| 25 | if (PyErr_Occurred()) { |
| 26 | PyErr_Print(); |
| 27 | PyErr_Clear(); |
| 28 | } |
| 29 | return -1; |
| 30 | } |
| 31 | return PyDict_SetItemString(dict, name, obj); |
| 32 | } |
| 33 | |
| 34 | /* |
| 35 | * Python-only fallback for thread-local callback pointers |
nothing calls this directly
no outgoing calls
no test coverage detected