aboutsummaryrefslogtreecommitdiff
path: root/lib/std/start.zig
diff options
context:
space:
mode:
authorTadeo Kondrak <me@tadeo.ca>2021-01-11 08:03:09 -0700
committerTadeo Kondrak <me@tadeo.ca>2021-02-10 20:06:12 -0700
commit5dfe0e7e8fabd3cfc3fdf5c7099791da98899903 (patch)
tree9232489bf17f8ac7dec688277dcfcc1792849d3e /lib/std/start.zig
parent9c797fe3ac3a377caa01bdbd74b984d11b53398e (diff)
downloadzig-5dfe0e7e8fabd3cfc3fdf5c7099791da98899903.tar.gz
zig-5dfe0e7e8fabd3cfc3fdf5c7099791da98899903.zip
Convert inline fn to callconv(.Inline) everywhere
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 718d48130e..0fb96c768f 100644
--- a/lib/std/start.zig
+++ b/lib/std/start.zig
@@ -262,7 +262,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.
-inline fn initEventLoopAndCallMain() u8 {
+fn initEventLoopAndCallMain() callconv(.Inline) u8 {
if (std.event.Loop.instance) |loop| {
if (!@hasDecl(root, "event_loop")) {
loop.init() catch |err| {
@@ -291,7 +291,7 @@ inline fn initEventLoopAndCallMain() 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.
-inline fn initEventLoopAndCallWinMain() std.os.windows.INT {
+fn initEventLoopAndCallWinMain() callconv(.Inline) std.os.windows.INT {
if (std.event.Loop.instance) |loop| {
if (!@hasDecl(root, "event_loop")) {
loop.init() catch |err| {