aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-12-13 18:15:18 -0500
committerGitHub <noreply@github.com>2022-12-13 18:15:18 -0500
commit6378644d4ea561a79edf44056609681e6d1438d1 (patch)
tree84094f36ee3dd9e3befaf33a5a7da82fc5388da7 /lib/std/Thread.zig
parent65270cdc3345e9840427179168a09ef6e4dd34b9 (diff)
parent51ed5416ab2969a366c8c6bdc487f357bad267c3 (diff)
downloadzig-6378644d4ea561a79edf44056609681e6d1438d1.tar.gz
zig-6378644d4ea561a79edf44056609681e6d1438d1.zip
Merge pull request #13907 from Vexu/call-merge
Remove `stack` option from `@call`
Diffstat (limited to 'lib/std/Thread.zig')
-rw-r--r--lib/std/Thread.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig
index e2e17a2925..fc4f676a1f 100644
--- a/lib/std/Thread.zig
+++ b/lib/std/Thread.zig
@@ -387,10 +387,10 @@ fn callFn(comptime f: anytype, args: anytype) switch (Impl) {
switch (@typeInfo(@typeInfo(@TypeOf(f)).Fn.return_type.?)) {
.NoReturn => {
- @call(.{}, f, args);
+ @call(.auto, f, args);
},
.Void => {
- @call(.{}, f, args);
+ @call(.auto, f, args);
return default_value;
},
.Int => |info| {
@@ -398,7 +398,7 @@ fn callFn(comptime f: anytype, args: anytype) switch (Impl) {
@compileError(bad_fn_ret);
}
- const status = @call(.{}, f, args);
+ const status = @call(.auto, f, args);
if (Impl != PosixThreadImpl) {
return status;
}
@@ -411,7 +411,7 @@ fn callFn(comptime f: anytype, args: anytype) switch (Impl) {
@compileError(bad_fn_ret);
}
- @call(.{}, f, args) catch |err| {
+ @call(.auto, f, args) catch |err| {
std.debug.print("error: {s}\n", .{@errorName(err)});
if (@errorReturnTrace()) |trace| {
std.debug.dumpStackTrace(trace.*);