Determine if the model reference simulation target is generating
boolean_T ssRTWGenIsModelReferenceSimTarget(SimStruct *S)
SimStruct representing an S-Function block.
The Boolean value
true if the model reference
simulation target is building. Returns
the model reference Simulink® Coder™ target is building.
Use this macro in an S-function that can be contained in a referenced model to determine whether the referenced model containing this S-function is currently generating a simulation target or Simulink Coder target.