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