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)
PRE12-C. Do not define unsafe macros
Page Information
Title:
PRE12-C. Do not define unsafe macros
Author:
Martin Sebor
Feb 04, 2010
Last Changed by:
Jill Britton
Apr 20, 2023
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/ZtYxBQ
Export As:
Word
·
PDF
Incoming Links
SEI CERT C Coding Standard (2)
Page:
PRE31-C. Avoid side effects in arguments to unsafe macros
Page:
PRE10-C. Wrap multistatement macros in a do-while loop
Hierarchy
Parent Page
Page:
Rec. 01. Preprocessor (PRE)
Labels
Global Labels (3)
android-applicable
recommendation
pre
Recent Changes
Time
Editor
Apr 20, 2023 06:25
Jill Britton
View Changes
Apr 23, 2021 08:51
Jill Britton
View Changes
Apr 21, 2021 04:59
Jill Britton
View Changes
Apr 20, 2021 06:20
Jill Britton
View Changes
Apr 02, 2019 05:14
Joerg Herter
View Page History
Outgoing Links
External Links (5)
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html#Statement-E…
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 PRE10-CPP. Do not define unsafe macros
Home page:
SEI CERT C++ Coding Standard
SEI CERT C Coding Standard (17)
Page:
Axivion Bauhaus Suite_V
Page:
ECLAIR_V
Page:
Astrée
Page:
Axivion Bauhaus Suite
Page:
PRE00-C. Prefer inline or static functions to function-like macros
Page:
LDRA
Page:
RuleChecker_V
Page:
BB. Definitions
Page:
Helix QAC_V
Page:
Astrée_V
Page:
ECLAIR
Page:
Helix QAC
Page:
LDRA_V
Home page:
SEI CERT C Coding Standard
Page:
PRE31-C. Avoid side effects in arguments to unsafe macros
Page:
RuleChecker
Page:
MSC14-C. Do not introduce unnecessary platform dependencies
Overview
Content Tools
{"serverDuration": 99, "requestCorrelationId": "9bc5e3af4a75ce8b"}