Thread: another newbie
View Single Post
  #14   Spotlight this post!  
Unread 06-07-2004, 05:45
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: another newbie

Quote:
Originally Posted by Astronouth7303
In the macro, wouldn't you want to use a C style comment? I think it compiles as:
Code:
//...
      if(pir_in == 1 // In place of the pir_in == 1 here, you would put)
//...
Correct me if I'm wrong.
Yeah, you're right. The preprocessor won't handle (well, most cheaper ones don't) the comment and will insert it into the statement. The best solution would just be to put the comment above the #define.
__________________