generated master data for new builtins (#845)

This commit is contained in:
rimuspp 2022-12-22 22:26:29 -05:00 committed by GitHub
parent 44b6c4dae4
commit 4d7b95e1e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -506,6 +506,49 @@ pub const builtins = [_]Builtin{
"comptime name: []u8",
},
},
.{
.name = "@cVaArg",
.signature = "@cVaArg(operand: *std.builtin.VaList, comptime T: type) T",
.snippet = "@cVaArg(${1:operand: *std.builtin.VaList}, ${2:comptime T: type})",
.documentation =
\\Implements the C macro `va_arg`.
,
.arguments = &.{
"operand: *std.builtin.VaList",
"comptime T: type",
},
},
.{
.name = "@cVaCopy",
.signature = "@cVaCopy(src: *std.builtin.VaList) std.builtin.VaList",
.snippet = "@cVaCopy(${1:src: *std.builtin.VaList})",
.documentation =
\\Implements the C macro `va_copy`.
,
.arguments = &.{
"src: *std.builtin.VaList",
},
},
.{
.name = "@cVaEnd",
.signature = "@cVaEnd(src: *std.builtin.VaList) void",
.snippet = "@cVaEnd(${1:src: *std.builtin.VaList})",
.documentation =
\\Implements the C macro `va_end`.
,
.arguments = &.{
"src: *std.builtin.VaList",
},
},
.{
.name = "@cVaStart",
.signature = "@cVaStart() std.builtin.VaList",
.snippet = "@cVaStart()",
.documentation =
\\Implements the C macro `va_start`. Only valid inside a variadic function.
,
.arguments = &.{},
},
.{
.name = "@divExact",
.signature = "@divExact(numerator: T, denominator: T) T",