This code is an example of an instrumentation of a state machine to produce execution trace, message sequence charts, or even animated state diagrams. Code accompanies Miro Samek and Paul Montgomery's article “State-Oriented Programming,” August 2000 issue of Embedded Systems Programming magazine. C and C++ versions are available in the zip file.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.