Skip to content

Preprocessor Directives

LieberLieber Embedded Engineer uses stereotypes and tagged values of Uml models to extend or clarify certain issue.

Stereotype Description Tagged Values
Directive Generic implementation to allow definition of custom preprocessor directives/macros Incorporation, Expression, FlaggedCodeParts
include Implementation of the directive: #include Incorporation
line Implementation of the directive: #line Incorporation
define Implementation of the directive: #define Incorporation
undef Implementation of the directive: #undef Incorporation
if Implementation of the directive: #if Incorporation, FlaggedCodeParts
ifdef Implementation of the directive: #ifdef Incorporation, FlaggedCodeParts
ifndef Implementation of the directive: #ifndef Incorporation, FlaggedCodeParts
elif Implementation of the directive: #elif Incorporation, FlaggedCodeParts
else Implementation of the directive: #else FlaggedCodeParts
endif Implementation of the directive: #endif
error Implementation of the directive: #error Incorporation
pragma Implementation of the directive: #pragma Incorporation, FlaggedCodeParts
Tagged Values Description
Incorporation Specifies where the directive shall be generated (in .c file, in .h file or in both)
Expression A string value representing the expression/arguments of the directive
FlaggedCodeParts A list of model element (Class, Struct, Enum, Attribute, Operation) that shall be flagged with the directive.