annotate DEPENDENCIES/mingw32/Python27/include/warnings.h @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents 2a2c65a20a8b
children
rev   line source
Chris@87 1 #ifndef Py_WARNINGS_H
Chris@87 2 #define Py_WARNINGS_H
Chris@87 3 #ifdef __cplusplus
Chris@87 4 extern "C" {
Chris@87 5 #endif
Chris@87 6
Chris@87 7 PyAPI_FUNC(void) _PyWarnings_Init(void);
Chris@87 8
Chris@87 9 PyAPI_FUNC(int) PyErr_WarnEx(PyObject *, const char *, Py_ssize_t);
Chris@87 10 PyAPI_FUNC(int) PyErr_WarnExplicit(PyObject *, const char *, const char *, int,
Chris@87 11 const char *, PyObject *);
Chris@87 12
Chris@87 13 #define PyErr_WarnPy3k(msg, stacklevel) \
Chris@87 14 (Py_Py3kWarningFlag ? PyErr_WarnEx(PyExc_DeprecationWarning, msg, stacklevel) : 0)
Chris@87 15
Chris@87 16 /* DEPRECATED: Use PyErr_WarnEx() instead. */
Chris@87 17 #define PyErr_Warn(category, msg) PyErr_WarnEx(category, msg, 1)
Chris@87 18
Chris@87 19 #ifdef __cplusplus
Chris@87 20 }
Chris@87 21 #endif
Chris@87 22 #endif /* !Py_WARNINGS_H */
Chris@87 23