Created
December 8, 2018 01:50
-
-
Save petrhosek/aa5fd4210804bd94f95dc97b8d5b238e to your computer and use it in GitHub Desktop.
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
#include "foo/foo.h" | |
#include "foo/foo_internal.h" | |
#include "bar/bar.h" | |
void bar() { | |
foo(); | |
foo_internal(); | |
} |
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
module "//bar:bar" { | |
export * | |
header "../../bar/bar.h" | |
use "//foo:baz" | |
} | |
extern module "//foo:foo" "obj/foo/quux.cppmap" |
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
#ifndef BAR_H_ | |
#define BAR_H_ | |
void bar(); | |
#endif |
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
#include "foo/foo.h" | |
#include "foo/foo_internal.h" | |
void foo_internal() { | |
} | |
void foo() { | |
} |
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
module "//foo:foo" { | |
export * | |
header "../../foo/foo.h" | |
private header "../../foo/foo_internal.h" | |
} |
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
#ifndef FOO_H_ | |
#define FOO_H_ | |
void foo(); | |
#endif |
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
#ifndef FOO_INTERNAL_H_ | |
#define FOO_INTERNAL_H_ | |
void foo_internal(); | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment