4 ms·
> the typical implementation doesn’t have the courtesy to trap in the macro itself What does it mean?
by jwilk 4y ago
> the typical implementation doesn’t have the courtesy to trap in the macro itself
What does it mean?
- kps 4y agoSome implementations have assert() call a function and trap inside that function. For example, glibc has assert() call __assert_fail(). That means that if you're looking at execution or a dump in a debugger, you're left at least one stack frame down from the actual failure.