Staging
v0.8.1
https://github.com/python/cpython
Revision fc055252ebab9a1ecdfc0d04bc9c11168c2db9f7 authored by Serhiy Storchaka on 03 February 2014, 18:41:34 UTC, committed by Serhiy Storchaka on 03 February 2014, 18:41:34 UTC
1 parent 3633da2
Raw File
Tip revision: fc055252ebab9a1ecdfc0d04bc9c11168c2db9f7 authored by Serhiy Storchaka on 03 February 2014, 18:41:34 UTC
Issue #20368: Add tests for Tkinter methods exprstring(), exprdouble(),
Tip revision: fc05525
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);

/* 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