Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FSM external events #3

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

Tonidotpy
Copy link

The event code generation is disabled by default and can be enabled with the --event flag
The generated code can be used to trigger an event from outside the FSM and check whether an event has fired or not

@pbosetti
Copy link
Owner

pbosetti commented Oct 4, 2023

Cool. Can you also add an example graphviz supporting events?

I'd also bump the minor version number rather than the patch level.

@Tonidotpy
Copy link
Author

I changed the event code generation, now it is enabled by default and can be used via the is_event_triggered and event_trigger functions.
The new type event_data_t can also be used to pass custom data when the event is fired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants