diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2014-01-03 21:36:49 +0100 |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2014-01-03 21:36:49 +0100 |
| commit | 1c0689c613b61c8944456e78c5b592e3aaa40aba (patch) | |
| tree | 7f8bb895da42b257af0ca9cbc2dd13e60abf2186 /Include/warnings.h | |
| parent | a2924cabaf115169b1629424dbe71ba5a18670da (diff) | |
| download | cpython-git-1c0689c613b61c8944456e78c5b592e3aaa40aba.tar.gz | |
Issue #19526: Exclude all new API from the stable ABI.
Diffstat (limited to 'Include/warnings.h')
| -rw-r--r-- | Include/warnings.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/warnings.h b/Include/warnings.h index 217c06a665..effb9fad71 100644 --- a/Include/warnings.h +++ b/Include/warnings.h @@ -17,6 +17,7 @@ PyAPI_FUNC(int) PyErr_WarnFormat( Py_ssize_t stack_level, const char *format, /* ASCII-encoded string */ ...); +#ifndef Py_LIMITED_API PyAPI_FUNC(int) PyErr_WarnExplicitObject( PyObject *category, PyObject *message, @@ -24,6 +25,7 @@ PyAPI_FUNC(int) PyErr_WarnExplicitObject( int lineno, PyObject *module, PyObject *registry); +#endif PyAPI_FUNC(int) PyErr_WarnExplicit( PyObject *category, const char *message, /* UTF-8 encoded string */ @@ -32,11 +34,13 @@ PyAPI_FUNC(int) PyErr_WarnExplicit( const char *module, /* UTF-8 encoded string */ PyObject *registry); +#ifndef Py_LIMITED_API PyAPI_FUNC(int) PyErr_WarnExplicitFormat(PyObject *category, const char *filename, int lineno, const char *module, PyObject *registry, const char *format, ...); +#endif /* DEPRECATED: Use PyErr_WarnEx() instead. */ #ifndef Py_LIMITED_API |
