Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

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

aazue
New Contributor I
302 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
302 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

0 Kudos
aazue
New Contributor I
302 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

0 Kudos
SergeyKostrov
Valued Contributor II
302 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
0 Kudos
Reply