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.
