Main Content

getTargetLang

Class: coder.BuildConfig
Namespace: coder

Get target code generation language

Syntax

lang = getTargetLang(bldcfg)

Description

lang = getTargetLang(bldcfg) returns the target code generation language of the build context, bldcfg.

Input Arguments

expand all

Build context during code generation, specified as a coder.BuildConfig object. Use coder.BuildConfig methods to get information about the build context.

Output Arguments

expand all

Target code generation language, returned as either 'C' or 'C++'.

Version History

Introduced in R2013b