| 14 | |
| 15 | |
| 16 | static void |
| 17 | npy_PyErr_SetStringChained(PyObject *type, const char *message) |
| 18 | { |
| 19 | PyObject *exc, *val, *tb; |
| 20 | |
| 21 | PyErr_Fetch(&exc, &val, &tb); |
| 22 | PyErr_SetString(type, message); |
| 23 | npy_PyErr_ChainExceptionsCause(exc, val, tb); |
| 24 | } |
| 25 | |
| 26 | |
| 27 | /*NUMPY_API |
no test coverage detected