Unpack a single scalar index, taking a new reference to match unpack_tuple */
| 195 | |
| 196 | /* Unpack a single scalar index, taking a new reference to match unpack_tuple */ |
| 197 | static inline npy_intp |
| 198 | unpack_scalar(PyObject *index, PyObject **result, npy_intp NPY_UNUSED(result_n)) |
| 199 | { |
| 200 | Py_INCREF(index); |
| 201 | result[0] = index; |
| 202 | return 1; |
| 203 | } |
| 204 | |
| 205 | /** |
| 206 | * Turn an index argument into a c-array of `PyObject *`s, one for each index. |