File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,21 @@ static VALUE python_type_mapping;
30
30
static VALUE python_type_mapping ;
31
31
static ID id_python_type_mapping ;
32
32
33
+ int
34
+ pycall_python_major_version (void )
35
+ {
36
+ return python_major_version ;
37
+ }
38
+
33
39
Py_ssize_t
34
40
pycall_python_hexversion (void )
35
41
{
36
42
return python_hexversion ;
37
43
}
38
44
45
+ #undef pycall_python_major_version
46
+ #define pycall_python_major_version () python_major_version
47
+
39
48
#undef pycall_python_hexversion
40
49
#define pycall_python_hexversion () python_hexversion
41
50
Original file line number Diff line number Diff line change @@ -620,6 +620,7 @@ typedef struct {
620
620
pycall_libpython_api_table_t * pycall_libpython_api_table (void );
621
621
#define Py_API (name ) (pycall_libpython_api_table()->name)
622
622
623
+ int pycall_python_major_version (void );
623
624
Py_ssize_t pycall_python_hexversion (void );
624
625
#define pycall_python_long_hash (pycall_python_hexversion() < 0x03020000)
625
626
You can’t perform that action at this time.
0 commit comments