mirror of
https://github.com/python/cpython.git
synced 2026-01-10 17:30:04 +00:00
sys.audit() now has assertions to check that the event argument is not NULL and that the format argument does not use the "N" format. Add tests on PySys_AuditTuple().
15 lines
398 B
C
15 lines
398 B
C
#ifndef Py_CPYTHON_SYSMODULE_H
|
|
# error "this header file must not be included directly"
|
|
#endif
|
|
|
|
typedef int(*Py_AuditHookFunction)(const char *, PyObject *, void *);
|
|
|
|
PyAPI_FUNC(int) PySys_Audit(
|
|
const char *event,
|
|
const char *format,
|
|
...);
|
|
PyAPI_FUNC(int) PySys_AddAuditHook(Py_AuditHookFunction, void*);
|
|
|
|
PyAPI_FUNC(int) PySys_AuditTuple(
|
|
const char *event,
|
|
PyObject *args);
|