Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   another newbie (http://www.chiefdelphi.com/forums/showthread.php?t=29362)

Ryan M. 06-07-2004 05:45

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. :)

dumbo 08-07-2004 18:16

Re: another newbie
 
this may not be the place for me. who are you today :yikes:


All times are GMT -5. The time now is 22:27.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi