Skip to content

Add assert_nounwind! macro

Choose a tag to compare

@Techcable Techcable released this 06 Jan 02:47
0c3ab1c

The assert_nounwind! and unreachable_nounwind macros are new convenience wrappers around panic_nounwind!. I don't intend to add the other panic macros, as they are much less useful.

Add #[track_caller] to the nounwind::panic_nounwind() function. This has a minor increase in code size in the caller, but this can be avoided in the way described in the docs.