File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -2686,8 +2686,14 @@ fn SystemImpl(comptime fn_system: anytype) type {
2686
2686
args_tuple [i ] = field (it , @typeInfo (p .type .? ).pointer .child , i - start_index ).? ;
2687
2687
}
2688
2688
2689
- //NOTE: .always_inline seems ok, but unsure. Replace to .auto if it breaks
2690
- _ = @call (.always_inline , fn_system , args_tuple );
2689
+ // NOTE: In theory there is no reason not to use .always_inline
2690
+ // here, but in practice it results in a worse debugging experience
2691
+ // as of Zig 0.14.0.
2692
+ //
2693
+ // For example, on Windows crashes inside fn_system are attributed
2694
+ // to this @call, and it is not possible to set breakpoints on code
2695
+ // inside fn_system.
2696
+ _ = @call (.auto , fn_system , args_tuple );
2691
2697
}
2692
2698
};
2693
2699
}
You can’t perform that action at this time.
0 commit comments