#Zig bloated stdout inline while

1 messages · Page 1 of 1 (latest)

left stone
#

using c++ i got this which is the result i want in zig

undone coyote
#

print is being inlined

#

There's a couple of ways you can solve that

#
  1. you can write a noinline fn and call it from your inline while
  2. you can use @call with .{ .modifier = .never_inline }
left stone
undone coyote
#

You can, by forcing it to not inline using @call