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
Have you looked at #error? Stefan
#error would provide the means of notifying the user, but how would one test the condition that such notification is required? I think that was the key to Erik's question?