File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 2929# value may change.
3030# - typedef: A C typedef which is used in other definitions in the limited API.
3131# Its size/layout/signature must not change.
32+ # - ifdef: A feature macro: other items may be conditional on whether the macro
33+ # is defined or not.
3234
3335# Each top-level item can have details defined below it:
3436# - added: The version in which the item was added to the stable ABI.
4143# of the stable ABI.
4244# - a combination of the above (functions that were called by macros that
4345# were public in the past)
46+ # - doc: for `ifdef`, the blurb added in documentation
47+ # - windows: for `ifdef`, this macro is defined on Windows. (This info is used
48+ # to generate the DLL manifest and needs to be available on all platforms.)
49+ # `maybe` marks macros defined on some but not all Windows builds.
4450
4551# For structs, one of the following must be set:
4652# - opaque: The struct name is available in the Limited API, but its members
5965# https://docs.python.org/3/c-api/stable.html#stable
6066
6167
68+ # Feature macros for optional functionality:
69+
70+ ifdef MS_WINDOWS
71+ doc on Windows
72+ windows
73+ ifdef HAVE_FORK
74+ doc on platforms with fork()
75+ ifdef USE_STACKCHECK
76+ doc on platforms with USE_STACKCHECK
77+ windows maybe
78+ ifdef PY_HAVE_THREAD_NATIVE_ID
79+ doc on platforms with native thread IDs
80+ windows
81+ ifdef Py_REF_DEBUG
82+ doc when Python is compiled in debug mode (with Py_REF_DEBUG)
83+ windows maybe
84+
85+
6286# Mentioned in PEP 384:
6387
6488struct PyObject
You can’t perform that action at this time.
0 commit comments