aboutsummaryrefslogtreecommitdiff
path: root/lib/std/start.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2021-05-20 17:07:06 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2021-05-20 17:14:18 +0200
commit5b850d5c9251900962e52154eb0fb9c2a344476d (patch)
tree56978e4ad48b44dc723a24d9b62c4d2fe6ab8a32 /lib/std/start.zig
parent4a582734fd84f2096ca9bb559387ddd04c70ed57 (diff)
downloadzig-5b850d5c9251900962e52154eb0fb9c2a344476d.tar.gz
zig-5b850d5c9251900962e52154eb0fb9c2a344476d.zip
Run `zig fmt` on src/ and lib/std/
This replaces callconv(.Inline) with the more idiomatic inline keyword.
Diffstat (limited to 'lib/std/start.zig')
-rw-r--r--lib/std/start.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/start.zig b/lib/std/start.zig
index d3bf121c1b..250dea6a7b 100644
--- a/lib/std/start.zig
+++ b/lib/std/start.zig
@@ -375,7 +375,7 @@ const bad_main_ret = "expected return type of main to be 'void', '!void', 'noret
// This is marked inline because for some reason LLVM in release mode fails to inline it,
// and we want fewer call frames in stack traces.
-fn initEventLoopAndCallMain() callconv(.Inline) u8 {
+inline fn initEventLoopAndCallMain() u8 {
if (std.event.Loop.instance) |loop| {
if (!@hasDecl(root, "event_loop")) {
loop.init() catch |err| {
@@ -404,7 +404,7 @@ fn initEventLoopAndCallMain() callconv(.Inline) u8 {
// and we want fewer call frames in stack traces.
// TODO This function is duplicated from initEventLoopAndCallMain instead of using generics
// because it is working around stage1 compiler bugs.
-fn initEventLoopAndCallWinMain() callconv(.Inline) std.os.windows.INT {
+inline fn initEventLoopAndCallWinMain() std.os.windows.INT {
if (std.event.Loop.instance) |loop| {
if (!@hasDecl(root, "event_loop")) {
loop.init() catch |err| {