|
Re: #define's scope?
No, the preprocessor doesn't understand functions or anything about the code for that matter. All it understands is text. If both of those functions are in the same file, that should be causing an error. If not, then I don't know. If I had MPLAB in front of me, I'd give it a shot right now. Since I don't, I'd recommend printf-ing the value after each #define statement. That should tell you what you want to know.
__________________
Code:
void function(void)
{
function();
}
|