Skip to content

Commit

Permalink
sync: use -d debug_channels instead of just -g to turn on asserti…
Browse files Browse the repository at this point in the history
…ons in sync.channel_select (cleaner -cross code)
  • Loading branch information
spytheman committed Oct 26, 2023
1 parent d515eb0 commit 14618a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/sync/channels.c.v
Expand Up @@ -550,7 +550,7 @@ fn (mut ch Channel) try_pop_priv(dest voidptr, no_block bool) ChanState {
// -2 if all channels are closed

pub fn channel_select(mut channels []&Channel, dir []Direction, mut objrefs []voidptr, timeout time.Duration) int {
$if debug {
$if debug_channels ? {
assert channels.len == dir.len
assert dir.len == objrefs.len
}
Expand Down

0 comments on commit 14618a1

Please sign in to comment.