summaryrefslogtreecommitdiffstats
path: root/Parser/pegen/parse.c
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2020-05-25 19:17:12 (GMT)
committerGitHub <noreply@github.com>2020-05-25 19:17:12 (GMT)
commitdeb4355a37e41edf1199920789fe9572c1fb43c2 (patch)
tree93770ad4926835d8820fb2ca4d8fb4dadfdd5ede /Parser/pegen/parse.c
parent800a35c623bbcdb5793c7d7a4974524286311479 (diff)
downloadcpython-deb4355a37e41edf1199920789fe9572c1fb43c2.zip
cpython-deb4355a37e41edf1199920789fe9572c1fb43c2.tar.gz
cpython-deb4355a37e41edf1199920789fe9572c1fb43c2.tar.bz2
bpo-40750: Do not expand the new parser debug flags if Py_BUILD_CORE is not defined (GH-20393)
Diffstat (limited to 'Parser/pegen/parse.c')
-rw-r--r--Parser/pegen/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/pegen/parse.c b/Parser/pegen/parse.c
index 2b73547..b639241 100644
--- a/Parser/pegen/parse.c
+++ b/Parser/pegen/parse.c
@@ -1,7 +1,7 @@
// @generated by pegen.py from ./Grammar/python.gram
#include "pegen.h"
-#ifdef Py_DEBUG
+#if defined(Py_DEBUG) && defined(Py_BUILD_CORE)
extern int Py_DebugFlag;
#define D(x) if (Py_DebugFlag) x;
#else