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)
Page Information
Title:
Rec. 01. Preprocessor (PRE)
Author:
Barbara White
Mar 05, 2015
Last Changed by:
David Svoboda
Mar 15, 2022
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/XdUxBQ
Export As:
Word
·
PDF
Hierarchy
Parent Page
Page:
3 Recommendations
Children (14)
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:
PRE03-C. Prefer typedefs to defines for encoding non-pointer types
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
Show all...
Page:
PRE10-C. Wrap multistatement macros in a do-while loop
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
Mar 15, 2022 09:44
David Svoboda
View Changes
Dec 03, 2018 15:24
Derek Leung
View Changes
Nov 16, 2017 14:41
Will Snavely
View Changes
Nov 16, 2017 14:16
Will Snavely
View Changes
Feb 26, 2017 17:30
Will Snavely
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": 82, "requestCorrelationId": "ea8f5623d212b2b5"}