diff options
author | Christian Tismer <tismer@stackless.com> | 2019-04-16 15:26:58 +0200 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2019-04-16 20:35:02 +0000 |
commit | cd9bc47c1371da645ec709107cb612a8e8bf7040 (patch) | |
tree | 3f6f9e0f94e361f3889e0c892c6df8da82862975 /sources/shiboken2 | |
parent | f21206eb95572af8759366fb249c868659c5674c (diff) |
Make the PepType_AS_BUFFER definition complete
PepType_AS_BUFFER should also be defined for the
non-Limited API version to avoid ugly #ifdef constructs.
This patch augments the definition and simplifies qtcore.cpp .
Change-Id: Iddfb39e8afaf992f4edf72d871eec1eaf85d5963
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/shiboken2')
-rw-r--r-- | sources/shiboken2/libshiboken/pep384impl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sources/shiboken2/libshiboken/pep384impl.h b/sources/shiboken2/libshiboken/pep384impl.h index d883677ce..ffbc570a8 100644 --- a/sources/shiboken2/libshiboken/pep384impl.h +++ b/sources/shiboken2/libshiboken/pep384impl.h @@ -316,6 +316,7 @@ LIBSHIBOKEN_API void PyBuffer_Release(Pep_buffer *view); #else #define Pep_buffer Py_buffer +#define PepType_AS_BUFFER(type) ((type)->tp_as_buffer) #endif /* Py_LIMITED_API */ |