- Notifications
You must be signed in to change notification settings - Fork 31.7k
/
Copy pathpystats.h
28 lines (25 loc) · 698 Bytes
/
pystats.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Statistics on Python performance (public API).
//
// Define _Py_INCREF_STAT_INC() and _Py_DECREF_STAT_INC() used by Py_INCREF()
// and Py_DECREF().
//
// See Include/cpython/pystats.h for the full API.
#ifndefPy_PYSTATS_H
#definePy_PYSTATS_H
#ifdef__cplusplus
extern"C" {
#endif
#if defined(Py_STATS) && !defined(Py_LIMITED_API)
# definePy_CPYTHON_PYSTATS_H
# include"cpython/pystats.h"
# undef Py_CPYTHON_PYSTATS_H
#else
# define_Py_INCREF_STAT_INC() ((void)0)
# define_Py_DECREF_STAT_INC() ((void)0)
# define_Py_INCREF_IMMORTAL_STAT_INC() ((void)0)
# define_Py_DECREF_IMMORTAL_STAT_INC() ((void)0)
#endif// !Py_STATS
#ifdef__cplusplus
}
#endif
#endif// !Py_PYSTATS_H