cbe: emit nonstring attribute

Closes #24545
This commit is contained in:
Jacob Young
2025-08-09 02:15:05 -04:00
committed by Andrew Kelley
parent 0b3c3c02e3
commit 38dfa6537e
4 changed files with 182 additions and 49 deletions

View File

@@ -253,6 +253,12 @@
#define zig_align_fn zig_align_fn_unavailable
#endif
#if zig_has_attribute(nonstring)
#define zig_nonstring __attribute__((nonstring))
#else
#define zig_nonstring
#endif
#if zig_has_attribute(packed) || defined(zig_tinyc)
#define zig_packed(definition) __attribute__((packed)) definition
#elif defined(zig_msvc)