Staging
v0.5.1
https://github.com/python/cpython
Revision 1d7ec8f26cf7b08f8b163bea8e0236ad0228126e authored by Charles-François Natali on 02 August 2013, 08:22:07 UTC, committed by Charles-François Natali on 02 August 2013, 08:22:07 UTC
2 parent s b467d15 + 6ddd265
Raw File
Tip revision: 1d7ec8f26cf7b08f8b163bea8e0236ad0228126e authored by Charles-François Natali on 02 August 2013, 08:22:07 UTC
Issue #18325: Fix a test_kqueue failure on OpenBSD: kevent's data and event
Tip revision: 1d7ec8f
warnings.h
#ifndef Py_WARNINGS_H
#define Py_WARNINGS_H
#ifdef __cplusplus
extern "C" {
#endif

#ifndef Py_LIMITED_API
PyAPI_FUNC(PyObject*) _PyWarnings_Init(void);
#endif

PyAPI_FUNC(int) PyErr_WarnEx(
    PyObject *category,
    const char *message,        /* UTF-8 encoded string */
    Py_ssize_t stack_level);
PyAPI_FUNC(int) PyErr_WarnFormat(
    PyObject *category,
    Py_ssize_t stack_level,
    const char *format,         /* ASCII-encoded string  */
    ...);
PyAPI_FUNC(int) PyErr_WarnExplicit(
    PyObject *category,
    const char *message,        /* UTF-8 encoded string */
    const char *filename,       /* decoded from the filesystem encoding */
    int lineno,
    const char *module,         /* UTF-8 encoded string */
    PyObject *registry);

PyAPI_FUNC(int)
PyErr_WarnExplicitFormat(PyObject *category,
                         const char *filename, int lineno,
                         const char *module, PyObject *registry,
                         const char *format, ...);

/* DEPRECATED: Use PyErr_WarnEx() instead. */
#ifndef Py_LIMITED_API
#define PyErr_Warn(category, msg) PyErr_WarnEx(category, msg, 1)
#endif

#ifdef __cplusplus
}
#endif
#endif /* !Py_WARNINGS_H */

back to top