summaryrefslogtreecommitdiff
path: root/Modules/_ssl.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-05-14 17:24:35 +0200
committerVictor Stinner <victor.stinner@gmail.com>2014-05-14 17:24:35 +0200
commit45e8e2f2185fc593ae84a628922c5cbb1799b6ea (patch)
tree5a6706f3fd37947b574fe44c45f6c4cb6f6f7c53 /Modules/_ssl.c
parent79b49ab553f74560d71dd027db252f4f0ddd0304 (diff)
downloadcpython-git-45e8e2f2185fc593ae84a628922c5cbb1799b6ea.tar.gz
Issue #21490: Add new C macros: Py_ABS() and Py_STRINGIFY()
Keep _Py_STRINGIZE() in PC/pyconfig.h to not introduce a dependency between pyconfig.h and pymacros.h.
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r--Modules/_ssl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 503147698d..3b7226d15f 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -249,10 +249,8 @@ typedef enum {
} timeout_state;
/* Wrap error strings with filename and line # */
-#define STRINGIFY1(x) #x
-#define STRINGIFY2(x) STRINGIFY1(x)
#define ERRSTR1(x,y,z) (x ":" y ": " z)
-#define ERRSTR(x) ERRSTR1("_ssl.c", STRINGIFY2(__LINE__), x)
+#define ERRSTR(x) ERRSTR1("_ssl.c", Py_STRINGIFY(__LINE__), x)
/*