From 31be7f224cec8d6b09a5aa20d913c87a9384e506 Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Wed, 1 Nov 2023 11:15:44 +0100 Subject: [PATCH] Address review remarks - whitespace fixup - put the 'do {' on a separate line --- peps/pep-0007.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/peps/pep-0007.rst b/peps/pep-0007.rst index a9431964d61..2becf29fc0b 100644 --- a/peps/pep-0007.rst +++ b/peps/pep-0007.rst @@ -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; \ } \