summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2007-01-21 09:34:59 +0000
committerTravis Oliphant <oliphant@enthought.com>2007-01-21 09:34:59 +0000
commit20097b529cd7d7dda37ab814df36b2f58d9ce8f5 (patch)
tree1188874282051ea454533eec692df4f3bf574525
parent65f5782a9340f36467a3a7cfad3eac107d048428 (diff)
downloadnumpy-20097b529cd7d7dda37ab814df36b2f58d9ce8f5.tar.gz
Add a NOTDONE test for iterators.
-rw-r--r--numpy/core/include/numpy/ndarrayobject.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/core/include/numpy/ndarrayobject.h b/numpy/core/include/numpy/ndarrayobject.h
index 2505ad3f5..01d3feaf1 100644
--- a/numpy/core/include/numpy/ndarrayobject.h
+++ b/numpy/core/include/numpy/ndarrayobject.h
@@ -1495,6 +1495,9 @@ typedef struct {
#define PyArray_ITER_DATA(it) (((PyArrayIterObject *)(it))->dataptr)
+#define PyArray_ITER_NOTDONE(it) (((PyArrayIterObject *)(it))->index < \
+ ((PyArrayIterObject *)(it))->size)
+
/*
Any object passed to PyArray_Broadcast must be binary compatible with