Community
cancel
Showing results for 
Search instead for 
Did you mean: 
aazue
New Contributor I
52 Views

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

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
52 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
52 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
52 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