We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I have created a very useful macro that will have disastrous results if it is used inside an ISR. A few years from now some unsuspecting soul (who could be me) will probably use it inside an ISR and spend days debugging. Is there a means of:
#if ISR tell the clown this is bad #endif
About the only feasible method I see would be to use something like NOT_IN_ISR or so as part of the macro's name.
I guess you could bracket all your ISR functions between:
#define ISR
#undef ISR
#ifdef ISR #error tell the clown this is bad #endif