File tree 2 files changed +11
-2
lines changed
Tools/c-analyzer/c_parser/preprocessor
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 48
48
# define Py_BUILD_CORE
49
49
#endif
50
50
51
+ #if defined(Py_LIMITED_API) && defined(Py_BUILD_CORE)
52
+ # error "Py_LIMITED_API is not compatible with Py_BUILD_CORE"
53
+ #endif
54
+
51
55
52
56
/* *************************************************************************
53
57
Symbols and macros to supply platform-independent interfaces to basic
Original file line number Diff line number Diff line change 3
3
4
4
from . import common as _common
5
5
6
- # The following C files must not be built with Py_BUILD_CORE,
7
- # because they use the limited C API .
6
+ # The following C files define the Py_LIMITED_API macro, and so must not be
7
+ # built with the Py_BUILD_CORE macro defined .
8
8
USE_LIMITED_C_API = frozenset ((
9
+ # Modules/
9
10
'_testcapimodule.c' ,
10
11
'_testclinic_limited.c' ,
11
12
'xxlimited.c' ,
12
13
'xxlimited_35.c' ,
14
+
15
+ # Modules/_testcapi/
16
+ 'heaptype_relative.c' ,
17
+ 'vectorcall_limited.c' ,
13
18
))
14
19
15
20
TOOL = 'gcc'
You can’t perform that action at this time.
0 commit comments