diff options
| author | dweiller <4678790+dweiller@users.noreply.github.com> | 2025-01-23 00:13:23 +1100 |
|---|---|---|
| committer | dweiller <4678790+dweiller@users.noreply.github.com> | 2025-04-26 13:34:16 +1000 |
| commit | 898ca824585e78306bb0137dbae1fbf859b762b6 (patch) | |
| tree | 49934715689d33a7544b56e229e42b0d2e2063ef /lib/std/debug.zig | |
| parent | b9f440620d969204e8196ae6c226f939eb194d5e (diff) | |
| download | zig-898ca824585e78306bb0137dbae1fbf859b762b6.tar.gz zig-898ca824585e78306bb0137dbae1fbf859b762b6.zip | |
compiler: add @memmove builtin
Diffstat (limited to 'lib/std/debug.zig')
| -rw-r--r-- | lib/std/debug.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig index 664999caa0..722bcc74a9 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -134,6 +134,10 @@ pub fn FullPanic(comptime panicFn: fn ([]const u8, ?usize) noreturn) type { @branchHint(.cold); call("@memcpy arguments alias", @returnAddress()); } + pub fn memmoveLenMismatch() noreturn { + @branchHint(.cold); + call("@memmove arguments have non-equal lengths", @returnAddress()); + } pub fn noreturnReturned() noreturn { @branchHint(.cold); call("'noreturn' function returned", @returnAddress()); |
