vendredi 29 mai 2015

Does C supports compiler directive that prints a message without issuing warning or error? [duplicate]

This question already has an answer here:

The purpose was to print a message while compiling that acts as a reminder and it should not cause warning or error.

For e.g

void stub()
{
 // print a message say "TODO: Implement this before committing the changes"
}

Used #warning without strict option but it was still giving warning message.

Aucun commentaire:

Enregistrer un commentaire