Is there any way to store a macro value into a temporary and reuse it. pseudo Example:
#define X 0
#ifdef X
#define T X
#undef X
#define X (T + 1) // now X should be 1
#endif
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t see a way to achieve what you ask for. Depending on what you want to do with that, the use of
__COUNTER__, a common extension, could help you.