Menu ▾ ▴

#232 EXIT_STATE macro definition in C header missing parameter

SMC 7.4.0
closed-fixed
None
5
2022-11-15
2022-08-01
Joshua Wong
No

Hello,

Problem:
The EXIT_STATE macro definition for C header file appears to be missing a parameter causing compilation error. This occurs whenever the state machine contains Exit Actions.

Source File: SmcHeaderCGenerator.java, Line: 345

Original Line:
mTarget.println("#define EXIT_STATE(state) \\");

Proposed Change:
mTarget.println("#define EXIT_STATE(fsm, state) \\");

where the first parameter is fsm and is inferred from the C source file usage of EXIT_STATE.

Thank you.

Discussion

  • Kevin Rea

    Kevin Rea - 2022-10-27

    I can confirm this behavior and confirm that it was introduced in 7.3.0

     
  • Charles Rapp

    Charles Rapp - 2022-11-15
    • status: open --> closed-fixed
    • Group: SMC 7.3.0 --> SMC 7.4.0
     
  • Charles Rapp

    Charles Rapp - 2022-11-15

    Corrected in SMC release 7.4.0.

     

Log in to post a comment.