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)
PRE02-C. Macro replacement lists should be parenthesized
Page Information
Title:
PRE02-C. Macro replacement lists should be parenthesized
Author:
Robert Seacord
Oct 17, 2006
Last Changed by:
Jill Britton
Apr 20, 2023
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/ANcxBQ
Export As:
Word
·
PDF
Incoming Links
SEI CERT C Coding Standard (3)
Page:
PRE10-C. Wrap multistatement macros in a do-while loop
Page:
PRE00-C. Prefer inline or static functions to function-like macros
Page:
PRE01-C. Use parentheses within macros around parameter names
Hierarchy
Parent Page
Page:
Rec. 01. Preprocessor (PRE)
Labels
Global Labels (7)
ldra
rose-na-macros
android-applicable
exceptions
expressions
recommendation
pre
Recent Changes
Time
Editor
Apr 20, 2023 06:22
Jill Britton
View Changes
Apr 27, 2022 08:24
Jill Britton
View Changes
Apr 23, 2021 08:39
Jill Britton
View Changes
Apr 21, 2021 04:55
Jill Britton
View Changes
Apr 20, 2021 06:17
Jill Britton
View Page History
Outgoing Links
External Links (4)
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://www.kb.cert.org/vulnotes/bymetric?searchview&qu…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
SEI CERT C++ Coding Standard (2)
Page:
VOID PRE02-CPP. Macro replacement lists should be parenthesized
Home page:
SEI CERT C++ Coding Standard
SEI CERT C Coding Standard (24)
Page:
AA. Bibliography
Page:
PRE00-C. Prefer inline or static functions to function-like macros
Page:
PC-lint Plus_V
Page:
PRE01-C. Use parentheses within macros around parameter names
Page:
Helix QAC_V
Page:
BB. Definitions
Page:
LDRA_V
Page:
CodeSonar
Page:
ECLAIR
Page:
Parasoft_V
Page:
Axivion Bauhaus Suite
Home page:
SEI CERT C Coding Standard
Page:
Helix QAC
Page:
Parasoft
Page:
Axivion Bauhaus Suite_V
Page:
void MSC02-C. Avoid errors of omission
Page:
Klocwork
Page:
LDRA
Page:
ECLAIR_V
Page:
Klocwork_V
Page:
PC-lint Plus
Page:
DCL37-C. Do not declare or define a reserved identifier
Page:
DCL00-C. Const-qualify immutable objects
Page:
CodeSonar_V
Overview
Content Tools
{"serverDuration": 89, "requestCorrelationId": "23c37eee50d47d04"}