Skip to main content
assistive.skiplink.to.breadcrumbs
assistive.skiplink.to.header.menu
assistive.skiplink.to.action.menu
assistive.skiplink.to.quick.search
Log in
Confluence
Spaces
Hit enter to search
Help
Online Help
Keyboard Shortcuts
Feed Builder
What’s new
Available Gadgets
About Confluence
Log in
SEI CERT C Coding Standard
Pages
Boards
Space shortcuts
Dashboard
Secure Coding Home
Android
C
C++
Java
Perl
Page tree
Browse pages
Configure
Space tools
View Page
A
t
tachments (0)
Page History
Page Information
View in Hierarchy
View Source
Export to PDF
Export to Word
Pages
…
SEI CERT C Coding Standard
3 Recommendations
Rec. 01. Preprocessor (PRE)
PRE10-C. Wrap multistatement macros in a do-while loop
Page Information
Title:
PRE10-C. Wrap multistatement macros in a do-while loop
Author:
David Svoboda
May 19, 2008
Last Changed by:
Jill Britton
Apr 20, 2023
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/pdYxBQ
Export As:
Word
·
PDF
Incoming Links
SEI CERT C Coding Standard (2)
Page:
PRE11-C. Do not conclude macro definitions with a semicolon
Page:
EXP19-C. Use braces for the body of an if, for, or while statement
Hierarchy
Parent Page
Page:
Rec. 01. Preprocessor (PRE)
Labels
Global Labels (4)
rose-na-macros
android-applicable
recommendation
pre
Recent Changes
Time
Editor
Apr 20, 2023 06:24
Jill Britton
View Changes
Apr 27, 2022 08:27
Jill Britton
View Changes
Apr 23, 2021 08:44
Jill Britton
View Changes
Apr 21, 2021 04:58
Jill Britton
View Changes
Apr 20, 2021 06:19
Jill Britton
View Page History
Outgoing Links
External Links (7)
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://www.mathworks.com/help/bugfinder/ref/certcrec.pre10…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
kernelnewbies.org/FAQ
kernelnewbies.org/FAQ/DoWhile0
https://www.kb.cert.org/vulnotes/bymetric?searchview&qu…
SEI CERT C Coding Standard (19)
Page:
Klocwork_V
Page:
EXP19-C. Use braces for the body of an if, for, or while statement
Page:
LDRA
Page:
PRE12-C. Do not define unsafe macros
Page:
Axivion Bauhaus Suite_V
Page:
Polyspace Bug Finder_V
Page:
AA. Bibliography
Page:
Helix QAC
Page:
PC-lint Plus_V
Page:
Axivion Bauhaus Suite
Home page:
SEI CERT C Coding Standard
Page:
LDRA_V
Page:
BB. Definitions
Page:
PRE02-C. Macro replacement lists should be parenthesized
Page:
Helix QAC_V
Page:
Polyspace Bug Finder
Page:
Klocwork
Page:
PRE00-C. Prefer inline or static functions to function-like macros
Page:
PC-lint Plus
Overview
Content Tools
{"serverDuration": 68, "requestCorrelationId": "2f25fe8a20db7863"}