Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

StrictFlexArraysLevel

Control when to treat a trailing array as a flexible array member. Mirrors the -fstrict-flex-arrays=<n> compiler flag.

Translator.StrictFlexArraysLevel
pub const StrictFlexArraysLevel = enum

File

lib/compiler/translate-c/Translator.zig:69

Code

pub const StrictFlexArraysLevel = enum {
    /// Any trailing array member is a flexible array.
    @"0",
    /// Trailing arrays of size 0, 1, or undefined are flexible.
    @"1",
    /// Trailing arrays of size 0 or undefined are flexible (default).
    @"2",
    /// Only trailing arrays of undefined size are flexible.
    @"3",
}