Model Configuration Parameters: Code Generation Custom Code
The Code Generation > Custom Code category includes parameters for inserting custom C code into the generated code. These parameters require a Simulink® Coder™ license.
On the Configuration Parameters dialog box, the following configuration parameters are on the Code Generation > Custom Code pane.
Parameter | Description |
---|---|
Specify whether to use the same custom code settings as those in the Simulation Target > Custom Code pane. | |
Specify custom code to include near the top of the generated model source file. | |
Specify custom code to include near the top of the generated model header file. | |
Specify custom code to include in the generated model initialize function. | |
Specify custom code to include in the generated model terminate function. | |
Specify a list of include folders to add to the include path. | |
Specify a list of additional source files to compile and link with the generated code. | |
Specify a list of additional libraries to link with the generated code. | |
Specify preprocessor macro definitions to be added to the compiler command line. |