#define A 10 // für ein beliebigen Wert val_a
#define B 42 // für ein beliebigen Wert val_b
// ...
static const int HLPR = A;
#undef A
#define A 1
#undef B
#define B HLPR
int main()
{
printf("%d\n", A
); // wird vom preprocessor aufgelöst zu 1 wie gewünscht printf("%d\n", B
); // wird vom preprocessor aufgelöst zu val_a }
I2RlZmluZSBBIDEwIC8vIGbDvHIgZWluIGJlbGllYmlnZW4gV2VydCB2YWxfYQojZGVmaW5lIEIgNDIgLy8gZsO8ciBlaW4gYmVsaWViaWdlbiBXZXJ0IHZhbF9iCgovLyAuLi4KCnN0YXRpYyBjb25zdCBpbnQgSExQUiA9IEE7CgojdW5kZWYgIEEKI2RlZmluZSBBIDEKCiN1bmRlZiAgQgojZGVmaW5lIEIgSExQUgoKaW50IG1haW4oKQp7CiAgcHJpbnRmKCIlZFxuIiwgQSk7IC8vIHdpcmQgdm9tIHByZXByb2Nlc3NvciBhdWZnZWzDtnN0IHp1IDEgd2llIGdld8O8bnNjaHQKICBwcmludGYoIiVkXG4iLCBCKTsgLy8gd2lyZCB2b20gcHJlcHJvY2Vzc29yIGF1ZmdlbMO2c3QgenUgdmFsX2EKfQo=