Okay, code striptease laugh

Code:
void STATEMGR_execute(STATEMGR* psState)
{
	/* check whether atate machine is ready */
	if (	(LIST_items(psState->psActions) > 0) && (LIST_items(psState->psTransitions) > 0) )
	{
		/* first check, if transition has to be done */
		STATEMGR__checkTransitions(psState);

		/* now execute cyclic action callback */
		if (psState->pfAction != NULL)
		{
			STATEMGR__pfCallback = psState->pfAction;
			STATEMGR__pfCallback();
		}
	}
}


An interface function of my state handler module.

The corresponding header file part looks like this:
Code:
/*! Execute cyclical actions and transition checks for State Machine.
 *  Must be called cyclically.
 *  \param	psState Pointer to affected STATEMGR
 */
void STATEMGR_execute(STATEMGR* psState);



The generated manual page:
http://firoball.de/stuff/toolbox_manual/state_8h.html#b420c531bd0c72348b153df19f7fd5b3