mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-36842: Implement PEP 578 (GH-12613)
Adds sys.audit, sys.addaudithook, io.open_code, and associated C APIs.
This commit is contained in:
parent
e788057a91
commit
b82e17e626
70 changed files with 3565 additions and 1816 deletions
|
@ -36,6 +36,7 @@ static inline void PyDTrace_INSTANCE_DELETE_START(int arg0) {}
|
|||
static inline void PyDTrace_INSTANCE_DELETE_DONE(int arg0) {}
|
||||
static inline void PyDTrace_IMPORT_FIND_LOAD_START(const char *arg0) {}
|
||||
static inline void PyDTrace_IMPORT_FIND_LOAD_DONE(const char *arg0, int arg1) {}
|
||||
static inline void PyDTrace_AUDIT(const char *arg0, void *arg1) {}
|
||||
|
||||
static inline int PyDTrace_LINE_ENABLED(void) { return 0; }
|
||||
static inline int PyDTrace_FUNCTION_ENTRY_ENABLED(void) { return 0; }
|
||||
|
@ -48,6 +49,7 @@ static inline int PyDTrace_INSTANCE_DELETE_START_ENABLED(void) { return 0; }
|
|||
static inline int PyDTrace_INSTANCE_DELETE_DONE_ENABLED(void) { return 0; }
|
||||
static inline int PyDTrace_IMPORT_FIND_LOAD_START_ENABLED(void) { return 0; }
|
||||
static inline int PyDTrace_IMPORT_FIND_LOAD_DONE_ENABLED(void) { return 0; }
|
||||
static inline int PyDTrace_AUDIT_ENABLED(void) { return 0; }
|
||||
|
||||
#endif /* !WITH_DTRACE */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue