| ▲ | mananaysiempre 4 days ago | |
Not unless you write your own assert macro using C23 unreachable(), GNU C __builtin_unreachable(), MSVC __assume(0), or the like. The standard one is defined[1] to either explicitly check or completely ignore its argument. | ||
| ▲ | esrauch 4 days ago | parent [-] | |
Yeah, I meant it's common for projects to make their own 'assume' macros. In Rust you can wrap core::hint::assert_unchecked similarly. | ||