Skip to content

Commit 3adb655

Browse files
committed
address review: clinic_state
1 parent b53308a commit 3adb655

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Modules/arraymodule.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ get_array_state(PyObject *module)
8282
(get_array_state(PyType_GetModuleByDef(tp, &arraymodule)))
8383
#define get_array_state_by_class(cls) \
8484
(get_array_state(PyType_GetModule(cls)))
85-
#define clinic_state() (find_array_state_by_type(type))
8685

8786
#define arrayobject_CAST(op) ((arrayobject *)(op))
8887
#define arrayiterobject_CAST(op) ((arrayiterobject *)(op))
@@ -134,7 +133,9 @@ enum machine_format_code {
134133
* Must come after arrayobject, arrayiterobject,
135134
* and enum machine_code_type definitions.
136135
*/
136+
#define clinic_state() (find_array_state_by_type(type))
137137
#include "clinic/arraymodule.c.h"
138+
#undef clinic_state
138139

139140
#define array_Check(op, state) PyObject_TypeCheck(op, state->ArrayType)
140141

0 commit comments

Comments
 (0)