Main Content

Header file

Description

Specify custom code to include near the top of the generated model header file.

Category: Code Generation > Custom Code

Settings

Default:''

The code generator places this code near the top of the generated model.h header file. If you are including a header file, in your custom header file add #ifndef code. This avoids multiple inclusions. For example, in rtwtypes.h the following #include guards are added:

#ifndef RTW_HEADER_rtwtypes_h_
#define RTW_HEADER_rtwtypes_h_
...
#endif /* RTW_HEADER_rtwtypes_h_ */

Command-Line Information

Parameter: CustomHeaderCode
Type: character vector
Value: C code
Default: ''

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Related Topics