The exit() operation name has the following format:
<object>_<state>_exit(<object*> const <me>)
For example, the following exit() operation is generated for the systemControl state in the HomeHeatingSystem:
void HomeHeatingSystem_systemControl_exit(
HomeHeatingSystem* const me);
This operation has the following implementation:
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");
}