Created
November 24, 2014 03:03
-
-
Save KatrinaHoffert/1e8c6d14f6e26f0de8a5 to your computer and use it in GitHub Desktop.
Demonstration of include guards -- now with include guards
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
#ifndef _AAA_H_ | |
#define _AAA_H_ | |
int foo(); | |
#endif |
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
#include "xxx.h" | |
#include "yyy.h" | |
int main() { | |
return 0; | |
} |
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
#ifndef _XXX_H_ | |
#define _XXX_H_ | |
#include "aaa.h" | |
#endif |
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
#ifndef _Y_H_ | |
#define _YYY_H_ | |
#include "aaa.h" | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment