-
-
Save graphitemaster/3104074 to your computer and use it in GitHub Desktop.
stdin
This file contains 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
#if FOO_H == 1 | |
#error Cyclic include | |
#endif | |
#ifndef FOO_H | |
#define FOO_H 1 | |
stuff; | |
#undef FOO_H | |
#define FOO_H 0 | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
include FILE
ifndef FOO_H
define FOO_H
stuff;
else
undef FOO_H
error Cyclic Include
endif