ssWarning
Display a warning message
Syntax
void ssWarning(SimStruct *S, const char_T *msg)
Arguments
S
SimStruct that represents an S-Function block or a Simulink® model.
msg
Warning message.
Description
Displays msg
. This macro expands to
mexWarnMsgTxt
when compiled for use with the Simulink product. When compiled for use with the Simulink
Coder™ product, the macro expands to printf("Warning:%s from
'%s'\n",msg, ssGetPath(S));
, if the target has
stdio
facilities; otherwise, it expands to a comment.
Languages
C, C++
Examples
See the S-function sfun_dynsize.c
used in sfcndemo_sfun_dynsize
.
See Also
Version History
Introduced before R2006a