+emil header guards
This commit is contained in:
parent
fe6d47d90b
commit
166dc3cf2f
11
C_C++/emil_header_guards/a.h
Normal file
11
C_C++/emil_header_guards/a.h
Normal file
@ -0,0 +1,11 @@
|
||||
#ifndef A_H
|
||||
|
||||
#include "b.h"
|
||||
|
||||
struct a {
|
||||
int i;
|
||||
};
|
||||
|
||||
|
||||
#define A_H
|
||||
#endif
|
10
C_C++/emil_header_guards/ac.h
Normal file
10
C_C++/emil_header_guards/ac.h
Normal file
@ -0,0 +1,10 @@
|
||||
#ifndef A_H
|
||||
#define A_H
|
||||
|
||||
#include "bc.h"
|
||||
|
||||
struct a {
|
||||
int i;
|
||||
};
|
||||
|
||||
#endif
|
11
C_C++/emil_header_guards/b.h
Normal file
11
C_C++/emil_header_guards/b.h
Normal file
@ -0,0 +1,11 @@
|
||||
#ifndef B_H
|
||||
|
||||
#include "a.h"
|
||||
|
||||
struct b {
|
||||
int i;
|
||||
};
|
||||
|
||||
|
||||
#define B_H
|
||||
#endif
|
11
C_C++/emil_header_guards/bc.h
Normal file
11
C_C++/emil_header_guards/bc.h
Normal file
@ -0,0 +1,11 @@
|
||||
#ifndef B_H
|
||||
#define B_H
|
||||
|
||||
#include "ac.h"
|
||||
|
||||
struct b {
|
||||
int i;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
12
C_C++/emil_header_guards/main.c
Normal file
12
C_C++/emil_header_guards/main.c
Normal file
@ -0,0 +1,12 @@
|
||||
// @BAKE gcc main.c -o $*.out
|
||||
#if 0
|
||||
# include "a.h"
|
||||
# include "b.h"
|
||||
#else
|
||||
# include "ac.h"
|
||||
# include "bc.h"
|
||||
#endif
|
||||
|
||||
signed main() {
|
||||
return 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user