changeset 36618 | 9a639a33ad1f |
parent 35775 | 440e8fce29e7 |
child 40598 | fa33196088c4 |
--- a/mercurial/cext/util.h Sat Mar 03 05:50:45 2018 -0500 +++ b/mercurial/cext/util.h Sat Mar 03 05:58:41 2018 -0500 @@ -14,6 +14,13 @@ #define IS_PY3K #endif +/* helper to switch things like string literal depending on Python version */ +#ifdef IS_PY3K +#define PY23(py2, py3) py3 +#else +#define PY23(py2, py3) py2 +#endif + /* clang-format off */ typedef struct { PyObject_HEAD