File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
doc/source/reference/c-api Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -3858,6 +3858,7 @@ To solve this, NumPy provides the following pattern that the the main
3858
3858
file is modified to define ``PY_ARRAY_UNIQUE_SYMBOL `` before the include:
3859
3859
3860
3860
.. code-block :: c
3861
+
3861
3862
/* Main module file */
3862
3863
#define PY_ARRAY_UNIQUE_SYMBOL MyModule
3863
3864
#include "numpy/ndarrayobject.h"
@@ -3953,7 +3954,7 @@ the C-API is needed then some additional steps must be taken.
3953
3954
``PyArray_ImportNumPyAPI() `` is preferable for custom error checking.
3954
3955
You may also see use of ``_import_array() `` (a function, not
3955
3956
a macro, but you may want to raise a better error if it fails) and
3956
- the variations ``import_array1(ret) `` which customizes the return value.
3957
+ the variations ``import_array1(ret) `` which customizes the return value.
3957
3958
3958
3959
.. c :macro :: PY_ARRAY_UNIQUE_SYMBOL
3959
3960
You can’t perform that action at this time.
0 commit comments