Skip to content

Commit

Permalink
Address review remarks
Browse files Browse the repository at this point in the history
- whitespace fixup

- put the 'do {' on a separate line
  • Loading branch information
erlend-aasland committed Nov 1, 2023
1 parent ce3a72b commit 31be7f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions peps/pep-0007.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,12 @@ Code lay-out
* Vertically align line continuation characters in multi-line macros.

* Macros intended to be used as a statement should use the
``do {... } while(0)`` macro idiom,
``do { ... } while (0)`` macro idiom,
without a final semicolon.
Example::

#define ADD_INT_MACRO(MOD, INT) do { \
#define ADD_INT_MACRO(MOD, INT) \
do { \
if (PyModule_AddIntConstant((MOD), (#INT), (INT)) < 0) { \
goto error; \
} \
Expand Down

0 comments on commit 31be7f2

Please sign in to comment.