Latest generator breaks all Default class transitions
Translates state machine into a target programming language.
Brought to you by:
cwrapp
Hello, I have faced an issue generating C code with latest Smc.jar (7_2_0). Code generated for transations in Default state is always ending with line:
AppClassState_Default(fsm);
This leads to assertation fail on most of transitions in Default state.
For example, I have compiled EX3 and got the following generated code:
static void StartMap_DefaultState_Unknown(struct AppClassContext *const fsm)
{
if (getDebugFlag(fsm) != 0) {
TRACE("LEAVING STATE : StartMap_DefaultState)\n");
}
if (getDebugFlag(fsm) != 0) {
TRACE("ENTER TRANSITION: StartMap_&StartMap_DefaultState.Unknown()\n");
}
if (getDebugFlag(fsm) != 0) {
TRACE("EXIT TRANSITION : StartMap_&StartMap_DefaultState.Unknown()\n");
}
setState(fsm, &StartMap_Unacceptable);
AppClassState_Default(fsm);
}
Attaching AppClass_sm.c and AppClass_sm.h, may be it would help you to fix this.
For example, the same transition generated with Smc.jar from 7.0.0: