Log in
Confluence
Spaces
Hit enter to search
Help
Online Help
Keyboard Shortcuts
Feed Builder
What’s new
About Confluence
Log in
SEI CERT C Coding Standard
Edit space details
Pages
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)
Page Information
Title:
Rec. 01. Preprocessor (PRE)
Author:
Barbara White
Mar 05, 2015
Last Changed by:
David Svoboda
Aug 06, 2025
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/XdUxBQ
Export As:
Word
·
PDF
Hierarchy
Parent Page
Page:
3 Recommendations
Children (13)
Page:
PRE00-C. Prefer inline or static functions to function-like macros
Page:
PRE01-C. Use parentheses within macros around parameter names
Page:
PRE02-C. Macro replacement lists should be parenthesized
Page:
PRE04-C. Do not reuse a standard header file name
Page:
PRE05-C. Understand macro replacement when concatenating tokens or performing stringification
Page:
PRE06-C. Enclose header files in an include guard
Page:
PRE07-C. Avoid using repeated question marks
Page:
PRE08-C. Guarantee that header file names are unique
Page:
PRE09-C. Do not replace secure functions with deprecated or obsolescent functions
Page:
PRE10-C. Wrap multistatement macros in a do-while loop
Show all...
Page:
PRE11-C. Do not conclude macro definitions with a semicolon
Page:
PRE12-C. Do not define unsafe macros
Page:
PRE13-C. Use the Standard predefined macros to test for versions and features.
Hide...
Labels
Global Labels (3)
recommendation-list
section
pre
Recent Changes
Time
Editor
Aug 06, 2025 17:49
David Svoboda
View Changes
May 20, 2025 10:04
David Svoboda
View Changes
May 20, 2025 09:47
David Svoboda
View Changes
May 20, 2025 09:37
David Svoboda
View Changes
REM Cost Reform
Mar 15, 2022 09:44
David Svoboda
View Page History
Outgoing Links
External Links (5)
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://confluence/label/seccode/recommendation
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://confluence/label/seccode/pre
SEI CERT C Coding Standard (1)
Home page:
SEI CERT C Coding Standard
Overview
Content Tools
{"serverDuration": 61, "requestCorrelationId": "56afecf508f726d6"}