mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-05-06 19:49:36 +00:00
0e707caa56
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
27 lines
695 B
C
27 lines
695 B
C
#ifndef Ty_CPYTHON_WARNINGS_H
|
|
# error "this header file must not be included directly"
|
|
#endif
|
|
|
|
PyAPI_FUNC(int) TyErr_WarnExplicitObject(
|
|
TyObject *category,
|
|
TyObject *message,
|
|
TyObject *filename,
|
|
int lineno,
|
|
TyObject *module,
|
|
TyObject *registry);
|
|
|
|
PyAPI_FUNC(int) TyErr_WarnExplicitFormat(
|
|
TyObject *category,
|
|
const char *filename, int lineno,
|
|
const char *module, TyObject *registry,
|
|
const char *format, ...);
|
|
|
|
// DEPRECATED: Use TyErr_WarnEx() instead.
|
|
#define TyErr_Warn(category, msg) TyErr_WarnEx((category), (msg), 1)
|
|
|
|
int _TyErr_WarnExplicitObjectWithContext(
|
|
TyObject *category,
|
|
TyObject *message,
|
|
TyObject *filename,
|
|
int lineno);
|