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

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

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Quoting bustafHi
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

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

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

Leave a Comment

Please sign in to add a comment. Not a member? Join today