mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
bpo-43774: Document configure options (GH-25283)
Add Doc/using/configure.rst documentation to document configure, preprocessor, compiler and linker options. Add a new section about the "Python debug build".
This commit is contained in:
parent
d92c59f486
commit
a41782cc84
20 changed files with 678 additions and 47 deletions
|
@ -12,7 +12,7 @@ This section aims to give a quick fly-by on the various type methods you can
|
|||
implement and what they do.
|
||||
|
||||
Here is the definition of :c:type:`PyTypeObject`, with some fields only used in
|
||||
debug builds omitted:
|
||||
:ref:`debug builds <debug-build>` omitted:
|
||||
|
||||
.. literalinclude:: ../includes/typestruct.h
|
||||
|
||||
|
|
|
@ -69,7 +69,8 @@ at the start of each object struct and defines a field called ``ob_base``
|
|||
of type :c:type:`PyObject`, containing a pointer to a type object and a
|
||||
reference count (these can be accessed using the macros :c:macro:`Py_REFCNT`
|
||||
and :c:macro:`Py_TYPE` respectively). The reason for the macro is to
|
||||
abstract away the layout and to enable additional fields in debug builds.
|
||||
abstract away the layout and to enable additional fields in :ref:`debug builds
|
||||
<debug-build>`.
|
||||
|
||||
.. note::
|
||||
There is no semicolon above after the :c:macro:`PyObject_HEAD` macro.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue