4 ms·
> Of course, there's no reason why you can't write your own equivalents of assert and debug_assert in C, or any other language, but having them built into a lan
by t-3 4y ago
> Of course, there's no reason why you can't write your own equivalents of assert and debug_assert in C, or any other language, but having them built into a language (or standard library)
Doesn't C have both static_assert and assert as part of the standard library?
- virtualritz 4y agoThe static_assert is a compile-time check. And it's C++11 and later, not C. That's about runtime vs compile time assertions. The article talks about something completely different.