Pregunta

I encountered some codes as the following:

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

What's the upper code doing ?

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top