Skip to content

Commit

Permalink
normalize macro expansion protection style
Browse files Browse the repository at this point in the history
  • Loading branch information
picnixz committed Jun 16, 2024
1 parent 13a7dd9 commit 436318d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Modules/_testbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2853,11 +2853,11 @@ _testbuffer_exec(PyObject *mod)
return -1;
}

#define ADD_INT_MACRO(mod, macro) \
do { \
if (PyModule_AddIntConstant(mod, #macro, macro) < 0) { \
return -1; \
} \
#define ADD_INT_MACRO(mod, macro) \
do { \
if (PyModule_AddIntConstant(mod, #macro, macro) < 0) { \
return -1; \
} \
} while (0)

ADD_INT_MACRO(mod, ND_MAX_NDIM);
Expand Down

0 comments on commit 436318d

Please sign in to comment.