<object>_<state>_exit(<object*> const <me>)
例如,以下 exit() 操作是为 systemControl 状态的 HomeHeatingSystem 生成的:
void HomeHeatingSystem_systemControl_exit( HomeHeatingSystem* const me);
void HomeHeatingSystem_systemControl_exit(
HomeHeatingSystem* const me) {
RiCTask_unschedTm(me->ric_reactive.myTask,
HomeHeatingSystem_Timeout_systemControl_id,
&me->ric_reactive);
NOTIFY_STATE_EXITED(me, HomeHeatingSystem,
"ROOT.systemControl");
}