-
-
Save juniorz/934393 to your computer and use it in GitHub Desktop.
Como evitar multiplas inclusões de um cabeçalho (C/C++)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Ao usar o ifndef (if not defined) o pre-processador só vai inserir o texto dentro do ifndef | |
se a constante __D_HEADER__ (deve ser uma constante unica, por isso os __ antes e depois) não estiver definida =D | |
*/ | |
#ifndef __D_HEADER__ | |
#define __D_HEADER__ | |
/* Assinatura das funções de D.h */ | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment