C Options - User
If you intend to generate C code from your model, you can configure the code generation options using the 'C Specifications' page of the 'Preferences' dialog.
Access
|
|
Start > View > Preferences > Source Code Engineering > C
|
|
|
Ctrl+F9
|
Options
|
|
|
|
|
Leave this checkbox unselected to support C code generation.
Select this option to disable C code support.
|
|
|
|
In the value fields, specify the options that apply under your own user ID in all models that you access:
- The default attribute type to create (fixed as int)
- Whether a #define constant is imported as an attribute in imported C code (if 'Object Oriented programming' is set to True on the 'C Specifications' page of the 'Manage Project Options' dialog)
- Whether to generate comments for C methods to the declaration, and to reverse engineer comments from the declaration
- Whether to generate comments for C methods to the implementation, and to reverse engineer comments from the implementation
- Whether to update comments in regenerating code from the model
- Whether to update the implementation file in re-generating code from the model
- The default source code directory location (click on the
button)
- The default file extensions to read when importing a directory of C code
- The Code Editor to use (click on the
button)
- The search path for the implementation file relative to the header file path
|
C Options - Model
|
Learn more