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

Does it support writing the states in different files? #84

Closed
craipy-hub opened this issue Aug 29, 2023 · 1 comment
Closed

Does it support writing the states in different files? #84

craipy-hub opened this issue Aug 29, 2023 · 1 comment

Comments

@craipy-hub
Copy link

I currently have a very large state system, all written in one file that appears very large and bulky. Can I write different states in different. h files to reduce maintenance costs?

@andrew-gresyk
Copy link
Owner

andrew-gresyk commented Aug 29, 2023

Yes, state definitions could be moved into separate .h, so long as they're #included after <hfsm2/machine.hpp>.

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

No branches or pull requests

2 participants