update version data

This commit is contained in:
Techatrix 2023-03-06 16:23:33 +01:00 committed by Lee Cannon
parent 8edb8bcac3
commit bb1b1dd102

View File

@ -208,7 +208,7 @@ pub const builtins = [_]Builtin{
.signature = "@breakpoint()", .signature = "@breakpoint()",
.snippet = "@breakpoint()", .snippet = "@breakpoint()",
.documentation = .documentation =
\\This function inserts a platform-specific debug trap instruction which causes debuggers to break there. \\This function inserts a platform-specific debug trap instruction which causes debuggers to break there. Unlike for `@trap()`, execution may continue after this point if the program is resumed.
\\ \\
\\This function is only valid within function scope. \\This function is only valid within function scope.
, ,
@ -1861,6 +1861,17 @@ pub const builtins = [_]Builtin{
, ,
.arguments = &.{}, .arguments = &.{},
}, },
.{
.name = "@trap",
.signature = "@trap() noreturn",
.snippet = "@trap()",
.documentation =
\\This function inserts a platform-specific trap/jam instruction which can be used to exit the program abnormally. This may be implemented by explicitly emitting an invalid instruction which may cause an illegal instruction exception of some sort. Unlike for `@breakpoint()`, execution does not continue after this point.
\\
\\Outside function scope, this builtin causes a compile error.
,
.arguments = &.{},
},
.{ .{
.name = "@truncate", .name = "@truncate",
.signature = "@truncate(comptime T: type, integer: anytype) T", .signature = "@truncate(comptime T: type, integer: anytype) T",