#Is `inline fn` and `fn ... callconv(.Inline)` the same?

1 messages · Page 1 of 1 (latest)

heady frost
#

I haven't found any mention on inline fn anywhere in the docs. I'm guessing they are the same, but just checking.

lunar creek
#

type fn foo() callconv(.Inline) void {} and run zig fmt on it :)

#

(yes, they're identical - the callconv is useful for when you want to determine whether or not the function is inline based on a comptime expression)