Main Content

Generate destructor

Description

Specify whether to generate a destructor for the C++ model class.

Category: Code Generation > Interface

Settings

Default: on

On

Generates a destructor for the C++ model class.

Off

Does not generate a destructor for the C++ model class.

Dependencies

  • This parameter appears only for ERT-based targets with Language set to C++ and Code interface packaging set to C++ class.

  • This parameter requires an Embedded Coder® license when generating code.

Command-Line Information

Parameter: GenerateDestructor
Type: character vector
Value: 'on' | 'off'
Default: 'on'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precaution

No recommendation

Related Topics