I was searching for some way to change the macro values. I want to use macro values like user-friendly variables. Like we used the scanf
function and store the user input to a variable.
If this way is not possible then Can we use the CMake or make to do this? If yes then how?
Example.
header. h
#define LED 8
I want to change this value before compile. Is there any way we can do that?
Please explain in detail. So I can understand perfectly. Possible add some example or link of example.
Thanks.