Skip to content

Commit 6ce8bb1

Browse files
committed
Add hint about cache name
1 parent 97cfbb4 commit 6ce8bb1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graalpython/com.oracle.graal.python.cext/modules/_cpython_struct.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2086,6 +2086,8 @@ PyTypeObject PyStructType = {
20862086
/* ---- Standalone functions ---- */
20872087

20882088
#define MAXCACHE 100
2089+
/* Please note: the name of the cache needs to be prefixed because this file
2090+
includes 'capi.h' which defines a global variable with name 'cache'. */
20892091
#define STRUCT_CACHE _cpython_struct_cache
20902092
static PyObject *STRUCT_CACHE = NULL;
20912093

0 commit comments

Comments
 (0)