1 #ifndef Py_INTERNAL_OBJECT_STATE_H
2 #define Py_INTERNAL_OBJECT_STATE_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6
7 #ifndef Py_BUILD_CORE
8 # error "this header requires Py_BUILD_CORE define"
9 #endif
10
11 struct _py_object_runtime_state {
12 #ifdef Py_REF_DEBUG
13 Py_ssize_t interpreter_leaks;
14 #endif
15 int _not_used;
16 };
17
18 struct _py_object_state {
19 #ifdef Py_REF_DEBUG
20 Py_ssize_t reftotal;
21 #endif
22 #ifdef Py_TRACE_REFS
23 /* Head of circular doubly-linked list of all objects. These are linked
24 * together via the _ob_prev and _ob_next members of a PyObject, which
25 * exist only in a Py_TRACE_REFS build.
26 */
27 PyObject refchain;
28 #endif
29 int _not_used;
30 };
31
32
33 #ifdef __cplusplus
34 }
35 #endif
36 #endif /* !Py_INTERNAL_OBJECT_STATE_H */