Determine if the model reference simulation target is generating
boolean_T ssRTWGenIsModelReferenceSimTarget(SimStruct *S)
The Boolean value true if the model reference simulation target is building. Returns false if 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.