Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
7683 Discussions

I have difficulty to translate value of two lines of an header file.

aazue
New Contributor I
114 Views
Hi
I have difficulty to translate value of two line of an header file.

(Uncomment the line #define CONFIG_XXX)
It's require to remove // or /* */ if it exist ?

(Comment the line #define CONFIG_XXX)
Require i add // as same
// #define CONFIG_XXX or /*#define CONFIG_XXX*/ ?

I understand just or false ?

Thanks
Regards
0 Kudos
3 Replies
SergeyKostrov
Valued Contributor II
114 Views
Quoting bustaf
Hi
I have difficulty to translate value of two line of an header file.

(Uncomment the line #define CONFIG_XXX)
It's require to remove // or /* */ if it exist ?

(Comment the line #define CONFIG_XXX)
Require i add // as same
// #define CONFIG_XXX or /*#define CONFIG_XXX*/ ?

I understand just or false ?

Thanks
Regards


Please take a look at these three cases:

// #define CONFIG_XXX
or
/*#define CONFIG_XXX*/
or
///*#define CONFIG_XXX*/

Best regards,
Sergey

aazue
New Contributor I
114 Views

Hi Sergey ,thanks
I changing the form of my question more clear.
In this case
meaning (Uncomment) is for enabled source line ?
meaning (Comment) is for disable source line ?
This file header is include to an firmware flash..
The source comport the strange comments ...
I'm afraid to compile and load this firmware incorrectly.
it's solved now for me , it work ok.
Regards

SergeyKostrov
Valued Contributor II
114 Views
Quoting bustaf
...
In this case
meaning (Uncomment) is for enabled source line ?
Yes, to compile it
meaning (Comment) is for disable source line ? Yes, to exclude from compilation
Reply