Comment style
Comment style in the generated code
Description
App Configuration Pane: Code Appearance
Configuration Objects: coder.EmbeddedCodeConfig
Comment style in the generated code.
For C code generation, specify the single-line comment style only if your compiler supports it.
See Specify Comment Style for C/C++ Code (Embedded Coder).
Dependencies
GenerateComments
enables this parameter.
Settings
Auto (Use standard comment style of the target language)
This setting is the default setting.
For C, generate multiline comments. For C++, generate single-line comments.
Multi-line (Use C-style comments)
Generate single or multiline comments delimited by
/*
and*/
.Single-line (Use C++-style comments)
Generate single-line comments preceded by
//
.
Programmatic Use
Property:
CommentStyle |
Values: 'Auto' |
'Single-line' | 'Multi-line' |
Default: 'Auto' |
Version History
Introduced in R2014a