ssWarning

Display a warning message

Syntax

void ssWarning(SimStruct *S, const char_T *msg)

Arguments

S

SimStruct representing 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++

Was this topic helpful?