I've stumbled across a few of these things DATE. FILE etc but don't know what they're called, so don't know what to search for, but is there a list of these?
meltDown:
I've stumbled across a few of these things DATE. FILE etc but don't know what they're called, so don't know what to search for, but is there a list of these?
A search on Google for DATE. FILE says they are predifined macros.
--- bill
A list
There's also __PRETTY_FUNCTION__
, which is great for debugging.
It's not a preprocessor macro though, it's a string (static const char []) provided by the compiler, not by the preprocessor.
Pieter
Thanks everyone.
PRETTY_FUNCTION and FUNCTION (which I tried for the hell of it and it works too) are now my goto (if you'll pardon the expression ) debugger...
bool debugFunctions=1;
...
...
if (debugFunctions){Serial.print("Now in ");Serial.println(__PRETTY_FUNCTION__);}