Skip to content

Commit 9785f84

Browse files
committed
Document Py_FORCE_EXPANSION
1 parent fbb93ab commit 9785f84

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Doc/c-api/intro.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,12 @@ complete listing.
245245
.. versionchanged:: 3.8
246246
MSVC support was added.
247247

248+
.. c:macro:: Py_FORCE_EXPANSION(X)
249+
250+
This is equivalent to :c:expr:`X`, which is useful for token-pasting in
251+
macros, as macro expansions in *X* are forcefully evaluated by the
252+
preprocessor.
253+
248254
.. c:macro:: Py_GETENV(s)
249255
250256
Like ``getenv(s)``, but returns ``NULL`` if :option:`-E` was passed on the

0 commit comments

Comments
 (0)