#define _CRITICAL_ONCE(uid,y) static int (uid)=0; if((uid)==0){ (y); (uid)++;};
Then in the user code;
_CRITICAL_ONCE( iTemp, dbgMsg( "This message is only posted once" ));
Is there anyway to automatically define a unique variable name at compile time and avoid the ''uid'' argument?
I''m generally learning new macro tricks ATM, so if you have any resources or hints please let me have them
- Matt