mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-107298: Document PyMODINIT_FUNC macro (#109236)
Document PyMODINIT_FUNC macro. Remove links to PyAPI_FUNC() and PyAPI_DATA() macros since they are not documented. These macros should only be used to define the Python C API. They should not be used outside Python code base.
This commit is contained in:
parent
1f885df2a5
commit
d7a27e527d
3 changed files with 27 additions and 3 deletions
|
@ -855,8 +855,8 @@ Example on Linux x86-64::
|
|||
At the beginning of the files, C extensions are built as built-in modules.
|
||||
Extensions defined after the ``*shared*`` marker are built as dynamic libraries.
|
||||
|
||||
The :c:macro:`PyAPI_FUNC()`, :c:macro:`PyAPI_DATA()` and
|
||||
:c:macro:`PyMODINIT_FUNC` macros of :file:`Include/pyport.h` are defined
|
||||
The :c:macro:`!PyAPI_FUNC()`, :c:macro:`!PyAPI_DATA()` and
|
||||
:c:macro:`PyMODINIT_FUNC` macros of :file:`Include/exports.h` are defined
|
||||
differently depending if the ``Py_BUILD_CORE_MODULE`` macro is defined:
|
||||
|
||||
* Use ``Py_EXPORTED_SYMBOL`` if the ``Py_BUILD_CORE_MODULE`` is defined
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue