master
1const builtin = @import("builtin");
2const std = @import("std");
3
4pub const linkage: std.builtin.GlobalLinkage = if (builtin.is_test)
5 .internal
6else
7 .strong;
8
9/// Determines the symbol's visibility to other objects.
10/// For WebAssembly this allows the symbol to be resolved to other modules, but will not
11/// export it to the host runtime.
12pub const visibility: std.builtin.SymbolVisibility = if (linkage != .internal)
13 .hidden
14else
15 .default;