| 336 | |
| 337 | |
| 338 | NPY_NO_EXPORT int |
| 339 | _get_bufsize_errmask(PyObject * extobj, const char *ufunc_name, |
| 340 | int *buffersize, int *errormask) |
| 341 | { |
| 342 | /* Get the buffersize and errormask */ |
| 343 | if (extobj == NULL) { |
| 344 | extobj = get_global_ext_obj(); |
| 345 | if (extobj == NULL && PyErr_Occurred()) { |
| 346 | return -1; |
| 347 | } |
| 348 | } |
| 349 | if (_extract_pyvals(extobj, ufunc_name, |
| 350 | buffersize, errormask, NULL) < 0) { |
| 351 | return -1; |
| 352 | } |
| 353 | |
| 354 | return 0; |
| 355 | } |
no test coverage detected