aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-11-21 09:41:49 -0800
committerGitHub <noreply@github.com>2020-11-21 09:41:49 -0800
commit7dcda5b0e8b2a6e001c4fa29d748cd093ca57436 (patch)
tree75fdb247bdad82586755f01d647d0dc952c16cc4 /lib/std
parentbf0cc32aa64002299361a30c5e4b701e99da5dea (diff)
parentccdaf946b969661220737ec747e5a720b13d0bc7 (diff)
downloadzig-7dcda5b0e8b2a6e001c4fa29d748cd093ca57436.tar.gz
zig-7dcda5b0e8b2a6e001c4fa29d748cd093ca57436.zip
Merge pull request #7182 from LemonBoy/externnnn
Initial implementation of @extern builtin
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/builtin.zig9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig
index 20195bf5a5..fa6b2ab6b4 100644
--- a/lib/std/builtin.zig
+++ b/lib/std/builtin.zig
@@ -643,6 +643,15 @@ pub const ExportOptions = struct {
section: ?[]const u8 = null,
};
+/// This data structure is used by the Zig language code generation and
+/// therefore must be kept in sync with the compiler implementation.
+pub const ExternOptions = struct {
+ name: []const u8,
+ library_name: ?[]const u8 = null,
+ linkage: GlobalLinkage = .Strong,
+ is_thread_local: bool = false,
+};
+
/// This function type is used by the Zig language code generation and
/// therefore must be kept in sync with the compiler implementation.
pub const TestFn = struct {