mirror of
https://github.com/python/cpython
synced 2026-09-29 11:55:30 +03:00
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
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue