View Single Post
  #12   Spotlight this post!  
Unread 25-01-2008, 12:28
Jake M Jake M is offline
void* Jake;
FRC #1178 (DURT)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Missouri
Posts: 118
Jake M has a spectacular aura aboutJake M has a spectacular aura about
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();
 }