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 4bcff7f commit 398e139Copy full SHA for 398e139
Include/methodobject.h
@@ -51,8 +51,9 @@ typedef PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords;
51
// (bpo-33012).
52
#define _PyCFunction_CAST(func) \
53
_Py_FUNC_CAST(PyCFunction, func)
54
-// Other casts are given for semantic conveniences, allowing
55
-// users to see whether a cast to suppress an undefined behavior is necessary.
+// The macros below are given for semantic convenience, allowing users
+// to see whether a cast to suppress an undefined behavior is necessary.
56
+// Note: At runtime, the original function signature must be respected.
57
#define _PyCFunctionFast_CAST(func) \
58
_Py_FUNC_CAST(PyCFunctionFast, func)
59
#define _PyCFunctionWithKeywords_CAST(func) \
0 commit comments