Hello
I'm coding state machine using function pointers. I have declared structure like this
typedef struct LinkStateMachine TLinkStateMachine;
typedef void (*LinkStateProc)(TLinkStateMachine *sm, EIndication event);
struct LinkStateMachine
{
LinkStateProc curLinkState;
Uint16 linkState;
};
SO, the LinkStateMachine is structure with pointer to the function which represents the state. The problem is that when i want to debug it, i cannot see the value of the curLinkState variable (that is, the current value of the function pointer). Is there any way to see this in debugging window.
I have temporarily solved the problem by adding another variable linkState which I update with current link state. this helped me to debug the system and get it running. however, I am still curious if there is an option (or plugin) that would enable me to display the value of a function pointer.
Ilija