Hi everyone,
I'm debugging some code for the PCTV 80e TV Tuner (hoping to get it included in the v4l project), and I'm trying to figure out whether or not some #ifdef statements need to be removed or moved or just altered.
I have things like
and some where they are in the middle of a select/case statementCode:#ifdef DJH_DEBUG int x; #endif
Finally, I have one or two that are entire methods (which I think will have to be moved to the header, but I'm not entirely sure).Code:case option1 case option2 #ifdef only for certain conditions case option3 case option4 #endif case option5
In some of the cases, I think the original author just used the ifdef statements as comments, but I'm not positive--which is why I'm here.
What I want to do is comment out the #ifdef statements, so they aren't compiled. In the first example, I want to comment out the entire code segment. In the second example, I just want to comment out the lines #ifdef and #endif, but leave the code intact. Same with the third example (where they use it for entire methods).
Can I simply surround the #ifdef statements with comment tags, or do I have to remove them completely from the program? In other words, will this work for the two given examples?
and some where they are in the middle of a select/case statementCode:/*#ifdef DJH_DEBUG int x; #endif*/
Thank you for any information, and have a great dayCode:case option1 case option2 /*#ifdef only for certain conditions*/ case option3 case option4 /*#endif*/ case option5
Patrick.
P.S. I wasn't sure if this belonged in the C Programming or this forum, as the question is somewhat generic, but my application is for a Linux-based program. So, please move the thread, if necessary.



LinkBack URL
About LinkBacks




