diff options
| author | Tim Foley <tfoley@nvidia.com> | 2017-06-27 10:24:25 -0700 |
|---|---|---|
| committer | Tim Foley <tfoley@nvidia.com> | 2017-06-27 10:24:25 -0700 |
| commit | 31293d61d3ec80198eab2439ec937d7ba37f6722 (patch) | |
| tree | 5d58272d219064234c6e90d7271caef5e118a77d /source/slang/syntax.h | |
| parent | 1716208fb62a7f0a8bbe55e597b582066cb51731 (diff) | |
Allow for re-export of an `import` declaration
If module `A.slang` contains `__exported __import B;` then any declarations from `B.slang` will be visible to any client code that does `__import A;`.
This allows a user to make a single "umbrella" file that encompases a bunch of code files.
Note that this really only affects scoping during Slang compilation/checking; at code generation time everything always gets emitted as raw HLSL/GLSL so that names will be visible whether we want them to be or not.
Diffstat (limited to 'source/slang/syntax.h')
| -rw-r--r-- | source/slang/syntax.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/syntax.h b/source/slang/syntax.h index 7a1701b88..7289719f4 100644 --- a/source/slang/syntax.h +++ b/source/slang/syntax.h @@ -57,6 +57,7 @@ namespace Slang SIMPLE_MODIFIER(FromStdLib); SIMPLE_MODIFIER(Prefix); SIMPLE_MODIFIER(Postfix); + SIMPLE_MODIFIER(Exported); #undef SIMPLE_MODIFIER |
