Skip to content

Conversation

robbert-vdh
Copy link
Contributor

It should be possible to compose the functions so that assert_no_alloc(|| permit_alloc(|| assert_no_alloc(|| ...))) causes allocations in the ... part to trigger a panic.

It should be possible to compose the functions so that
`assert_no_alloc(|| permit_alloc(|| assert_no_alloc(|| ...)))` causes
allocations in the `...` part to trigger a panic.
robbert-vdh added a commit to robbert-vdh/nih-plug that referenced this pull request Mar 3, 2023
So you can use `assert_no_alloc()` inside of `permit_alloc()`.

Windfisch/rust-assert-no-alloc#13
5eqn pushed a commit to 5eqn/nih-plug that referenced this pull request Nov 11, 2024
So you can use `assert_no_alloc()` inside of `permit_alloc()`.

Windfisch/rust-assert-no-alloc#13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant