diff options
author | Lysandros Nikolaou <lisandrosnik@gmail.com> | 2020-04-23 15:36:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-23 15:36:06 (GMT) |
commit | ebebb6429c224c713e1c63a0b05d4840f52c7415 (patch) | |
tree | 49c20c8f9168cba4ed89accc6987ea3fded6c3f0 /Include | |
parent | 9e6a1312c1cd04ab37cddd8f3bb9baa7e9a38bc0 (diff) | |
download | cpython-ebebb6429c224c713e1c63a0b05d4840f52c7415.zip cpython-ebebb6429c224c713e1c63a0b05d4840f52c7415.tar.gz cpython-ebebb6429c224c713e1c63a0b05d4840f52c7415.tar.bz2 |
bpo-40334: Improve various PEG-Parser related stuff (GH-19669)
The changes in this commit are all related to @vstinner's original review comments of the initial PEP 617 implementation PR.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pegen_interface.h (renamed from Include/pegen_interface.h) | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Include/pegen_interface.h b/Include/internal/pegen_interface.h index bf5b296..d8621c1 100644 --- a/Include/pegen_interface.h +++ b/Include/internal/pegen_interface.h @@ -1,10 +1,13 @@ -#ifndef Py_LIMITED_API #ifndef Py_PEGENINTERFACE #define Py_PEGENINTERFACE #ifdef __cplusplus extern "C" { #endif +#ifndef Py_BUILD_CORE +# error "this header requires Py_BUILD_CORE define" +#endif + #include "Python.h" #include "Python-ast.h" @@ -29,4 +32,3 @@ PyAPI_FUNC(PyCodeObject *) PyPegen_CodeObjectFromFileObject(FILE *, PyObject *fi } #endif #endif /* !Py_PEGENINTERFACE*/ -#endif /* !Py_LIMITED_API */ |