bpo-40750: Do not expand the new parser debug flags if Py_BUILD_CORE is not defined (GH-20393)
This commit is contained in:
parent
800a35c623
commit
deb4355a37
|
@ -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
|
||||
|
|
|
@ -29,7 +29,7 @@ from pegen.parser_generator import ParserGenerator
|
|||
EXTENSION_PREFIX = """\
|
||||
#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
|
||||
|
|
Loading…
Reference in New Issue