diff options
| author | Takeshi Yoneda <takeshi@tetrate.io> | 2021-09-24 22:14:53 +0900 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-05-10 15:21:48 -0700 |
| commit | 9654a54d4a2729200d38dbb6eec827cb03dc0f90 (patch) | |
| tree | 3b96d72cca0cb34c99f9a60f4b093e1fa4052dea /lib/std | |
| parent | 67c4b16d6e27f1d81e2e2f837bd53d958b9baa33 (diff) | |
| download | zig-9654a54d4a2729200d38dbb6eec827cb03dc0f90.tar.gz zig-9654a54d4a2729200d38dbb6eec827cb03dc0f90.zip | |
Add Visibility field to ExportOptions.
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/builtin.zig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index 8c1e38ea09..3b0a24d3f5 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -70,6 +70,14 @@ pub const GlobalLinkage = enum { /// This data structure is used by the Zig language code generation and /// therefore must be kept in sync with the compiler implementation. +pub const GlobalVisibility = enum { + default, + hidden, + protected, +}; + +/// This data structure is used by the Zig language code generation and +/// therefore must be kept in sync with the compiler implementation. pub const AtomicOrder = enum { Unordered, Monotonic, @@ -655,6 +663,7 @@ pub const ExportOptions = struct { name: []const u8, linkage: GlobalLinkage = .Strong, section: ?[]const u8 = null, + visibility: GlobalVisibility = .default, }; /// This data structure is used by the Zig language code generation and |
