Preserve extern
keyword in function declarations
Include extern
keyword in function declarations
Model Configuration Pane: Code Generation / Code Style
Description
Specify whether to include the extern
keyword in function declarations in the generated code.
Note
The extern
keyword is optional for functions with external linkage. It is considered good programming practice to include the extern
keyword in function declarations for code readability.
Settings
on
(default) | off
Default: on
- On
Include the
extern
keyword in function declarations in the generated code.- Off
Remove the
extern
keyword from function declarations in the generated code.
Examples
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |
Programmatic Use
Parameter: PreserveExternInFcnDecls |
Type: character vector |
Value: 'on' | 'off' |
Default: 'on' |
Version History
Introduced in R2009b