是不是没有人碰到这样的问题啊?还是这个问题很容易解决?
我仔细读了程序错误段
/*====================================*
* Determine => MODE: WHO IS USING THE SIMSTRUC
*/
#if !defined(S_FUNCTION_LEVEL)
# if defined(S_FUNCTION_NAME)
# define S_FUNCTION_LEVEL 1 /* Backwards compatibility old S-functions */
# else
# define S_FUNCTION_LEVEL 2
# endif
#endif
#if S_FUNCTION_LEVEL != 1 && S_FUNCTION_LEVEL != 2
# error Invalid S_FUNCTION_LEVEL
#endif
#if defined(RTW_GENERATED_S_FUNCTION)
/*
* Used by RTW Generated S Function, ex s-fcn target.
* This flag is independent of how the
* s-function is built (i.e., it is a #define in the code, not a build