| ... | ... | @@ -272,6 +272,15 @@ |
| 272 | 272 | #define zig_linksection_fn zig_linksection |
| 273 | 273 | #endif |
| 274 | 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 | |
| 275 | 284 | #if zig_has_builtin(unreachable) || defined(zig_gcc) || defined(zig_tinyc) |
| 276 | 285 | #define zig_unreachable() __builtin_unreachable() |
| 277 | 286 | #elif defined(zig_msvc) |