1 #ifndef Py_INTERNAL_CODE_H
2 #define Py_INTERNAL_CODE_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6 
7 typedef struct {
8     PyObject *ptr;  /* Cached pointer (borrowed reference) */
9     uint64_t globals_ver;  /* ma_version of global dict */
10     uint64_t builtins_ver; /* ma_version of builtin dict */
11 } _PyOpcache_LoadGlobal;
12 
13 struct _PyOpcache {
14     union {
15         _PyOpcache_LoadGlobal lg;
16     } u;
17     char optimized;
18 };
19 
20 /* Private API */
21 int _PyCode_InitOpcache(PyCodeObject *co);
22 
23 
24 #ifdef __cplusplus
25 }
26 #endif
27 #endif /* !Py_INTERNAL_CODE_H */
28