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.
1 parent 9785f84 commit 5d84b69Copy full SHA for 5d84b69
Doc/c-api/intro.rst
@@ -251,6 +251,14 @@ complete listing.
251
macros, as macro expansions in *X* are forcefully evaluated by the
252
preprocessor.
253
254
+.. c:macro:: Py_GCC_ATTRIBUTE(name)
255
+
256
+ Use a GCC attribute *name*, hiding it from compilers that don't support GCC
257
+ attributes (such as MSVC).
258
259
+ This expands to ``__attribute__((name))`` on a GCC compiler, and expands
260
+ to nothing on compilers that don't support GCC attributes.
261
262
.. c:macro:: Py_GETENV(s)
263
264
Like ``getenv(s)``, but returns ``NULL`` if :option:`-E` was passed on the
0 commit comments