We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Py_DEBUG
1 parent 28db045 commit 004e6ecCopy full SHA for 004e6ec
1 file changed
Doc/c-api/intro.rst
@@ -832,6 +832,13 @@ It is also implied by the presence of the
832
not-Python-specific :c:macro:`!_DEBUG` macro. When :c:macro:`!Py_DEBUG` is enabled
833
in the Unix build, compiler optimization is disabled.
834
835
+.. note::
836
+ On Windows, the :c:macro:`!Py_DEBUG` macro is not defined by default.
837
+
838
+ The :option:`--with-pydebug` option is not available on Windows. Instead, the
839
+ not-Python-specific :c:macro:`!_DEBUG` macro can be defined by the compiler
840
+ options and that will enable the :c:macro:`!Py_DEBUG` macro.
841
842
In addition to the reference count debugging described below, extra checks are
843
performed, see :ref:`Python Debug Build <debug-build>`.
844
0 commit comments