v6.4.0: missing EXIT_STATE() macro in generated C code
Translates state machine into a target programming language.
Brought to you by:
cwrapp
Hi,
the attached .smc file doesn't contain Exit {...} actions for each state. In SMC v6.3.0, the EXIT_STATE() macro was generated as an empty macro.
But in SMC v6.4.0, EXIT_STATE() isn't #defined at all, but called (see attached .c file). The code doesn't compile.
(I know I can add empty Exit {...} actions to each state, but anyway...)
Kind regards
Frank
No, sorry, it doesn't help. I just tried it, the EXIT_STATE() macro is not generated if Exit {...} is empty :-(
fixed in HEAD by http://smc.cvs.sourceforge.net/viewvc/smc/smc/net/sf/smc/generator/SmcCGenerator.java?revision=1.19
see delta http://smc.cvs.sourceforge.net/viewvc/smc/smc/net/sf/smc/generator/SmcCGenerator.java?r1=1.18&r2=1.19
This fixed it, thank you!
Corrected in release 6.5.0.