We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e72026 commit 13392adCopy full SHA for 13392ad
stage1/zig.h
@@ -272,6 +272,15 @@
272
#define zig_linksection_fn zig_linksection
273
#endif
274
275
+#if zig_has_attribute(visibility)
276
+#define zig_visibility(name) __attribute__((visibility(#name)))
277
+#else
278
+#define zig_visibility(name) zig_visibility_##name
279
+#define zig_visibility_default
280
+#define zig_visibility_hidden zig_visibility_hidden_unavailable
281
+#define zig_visibility_protected zig_visibility_protected_unavailable
282
+#endif
283
+
284
#if zig_has_builtin(unreachable) || defined(zig_gcc) || defined(zig_tinyc)
285
#define zig_unreachable() __builtin_unreachable()
286
#elif defined(zig_msvc)
stage1/zig1.wasm
169 KB
0 commit comments