Functions

fn CAST_OR_CALL(a: anytype, b: anytype) switch (@typeInfo(@TypeOf(a))) {
        .Type => a,
        .Fn => |fn_info| fn_info.return_type orelse void,
        else => |info| @compileError("Unexpected argument type: " ++ @tagName(info)),
    }

A 2-argument function-like macro defined as #define FOO(A, B) (A)(B) could be e…

A 2-argument function-like macro defined as #define FOO(A, B) (A)(B) could be either: cast B to A, or call A with the value B.

inline fn DISCARD(x: anytype) void

No documentation provided.

fn F_SUFFIX(comptime f: comptime_float) f32

No documentation provided.

fn LL_SUFFIX(comptime n: comptime_int) @TypeOf(promoteIntLiteral(c_longlong, n, .decimal))

No documentation provided.

fn L_SUFFIX(comptime number: anytype) L_SUFFIX_ReturnType(number)

No documentation provided.

fn ULL_SUFFIX(comptime n: comptime_int) @TypeOf(promoteIntLiteral(c_ulonglong, n, .decimal))

No documentation provided.

fn UL_SUFFIX(comptime n: comptime_int) @TypeOf(promoteIntLiteral(c_ulong, n, .decimal))

No documentation provided.

fn U_SUFFIX(comptime n: comptime_int) @TypeOf(promoteIntLiteral(c_uint, n, .decimal))

No documentation provided.

fn WL_CONTAINER_OF(ptr: anytype, sample: anytype, comptime member: []const u8) @TypeOf(sample)

No documentation provided.