If I have a typedef for a function pointer, such as
typedef void (* specialFunction) (void);
how can I show that I am declaring a function of that type, and not just coincidentally a function with the same signature?
I am not trying to enforce anything, just to make the code more legible (and maintainable), and make it obvious that the function declaration is say, a timer callback, or ISR routine.
Obviously, I can't
extern specialFunction mySpecialFunction(void);
but is there any way that I can use specialFunction
in the declaration, to distinguish mySpecialFunction
from myBoringlyNormalFunction
?