سؤال

I encountered some codes as the following:

#define MY_IDENTIFIER
void someCode() 
{
    ...
    MY_IDENTIFIER
    ...
}

What's the upper code doing ?

هل كانت مفيدة؟

المحلول

Absolutely nothing. The pre-processor is simply replacing MY_IDENTIFIER with nothing wherever it encounters it.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top