4 ms·
the problem is that assert is defined so that if NDEBUG is defined, it's a no-op. I'd use an explicit check and an abort() call.
by ori_b 17y ago
the problem is that assert is defined so that if NDEBUG is defined, it's a no-op.
I'd use an explicit check and an abort() call.