David_
Advanced Member level 2
Hello.
While trying to learn something about macros I found that there are a directive #undef, and I wonder if the following:
Is this exclusively used as a preprocessor directive or can one use such a code during runtime to define things depending on button presses as a example?
Regards
While trying to learn something about macros I found that there are a directive #undef, and I wonder if the following:
Code:
#ifndef VALUE
#define VALUE 10
...
if(something)
{
#ifdef VALUE
#undef VALUE
#define VALUE 20
}
Is this exclusively used as a preprocessor directive or can one use such a code during runtime to define things depending on button presses as a example?
Regards