summaryrefslogtreecommitdiff
path: root/doc/source/reference/c-api/array.rst
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2020-10-05 09:03:58 +0300
committerGitHub <noreply@github.com>2020-10-05 09:03:58 +0300
commitcf1306a842d7b1064270bd06951a485121e60816 (patch)
tree8de595ff1f4ad8b8e9e79f1fd63ec8891064d082 /doc/source/reference/c-api/array.rst
parent3f6bb2073418e0ea0d88398e1848e2aa3f1b53eb (diff)
parent37ff6fce0bfdb5df87aafcdd5f38e9ebc5ebe0e6 (diff)
downloadnumpy-cf1306a842d7b1064270bd06951a485121e60816.tar.gz
Merge pull request #17445 from takanori-pskq/i13114-fix-refs-macro
DOC: Fix the references for macros
Diffstat (limited to 'doc/source/reference/c-api/array.rst')
-rw-r--r--doc/source/reference/c-api/array.rst8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/source/reference/c-api/array.rst b/doc/source/reference/c-api/array.rst
index cfe4d2d51..9fe45d2de 100644
--- a/doc/source/reference/c-api/array.rst
+++ b/doc/source/reference/c-api/array.rst
@@ -3259,6 +3259,8 @@ Memory management
:c:data:`NPY_USE_PYMEM` is 0, if :c:data:`NPY_USE_PYMEM` is 1, then
the Python memory allocator is used.
+ .. c:macro:: NPY_USE_PYMEM
+
.. c:function:: int PyArray_ResolveWritebackIfCopy(PyArrayObject* obj)
If ``obj.flags`` has :c:data:`NPY_ARRAY_WRITEBACKIFCOPY` or (deprecated)
@@ -3289,9 +3291,13 @@ be accomplished using two groups of macros. Typically, if one macro in
a group is used in a code block, all of them must be used in the same
code block. Currently, :c:data:`NPY_ALLOW_THREADS` is defined to the
python-defined :c:data:`WITH_THREADS` constant unless the environment
-variable :c:data:`NPY_NOSMP` is set in which case
+variable ``NPY_NOSMP`` is set in which case
:c:data:`NPY_ALLOW_THREADS` is defined to be 0.
+.. c:macro:: NPY_ALLOW_THREADS
+
+.. c:macro:: WITH_THREADS
+
Group 1
"""""""