##// END OF EJS Templates
py3: add PY23() macro to switch string literal depending on python version...
Yuya Nishihara -
r36636:9a639a33 default
parent child Browse files
Show More
@@ -14,6 +14,13 b''
14 #define IS_PY3K
14 #define IS_PY3K
15 #endif
15 #endif
16
16
17 /* helper to switch things like string literal depending on Python version */
18 #ifdef IS_PY3K
19 #define PY23(py2, py3) py3
20 #else
21 #define PY23(py2, py3) py2
22 #endif
23
17 /* clang-format off */
24 /* clang-format off */
18 typedef struct {
25 typedef struct {
19 PyObject_HEAD
26 PyObject_HEAD
General Comments 0
You need to be logged in to leave comments. Login now