Skip to content

Commit

Permalink
Address review: be explicit regarding final semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland committed Oct 30, 2023
1 parent 57c310f commit ce3a72b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion peps/pep-0007.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ 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 { \
Expand Down

0 comments on commit ce3a72b

Please sign in to comment.