[TUHS] To NDEBUG or not to NDEBUG, that is the question
Arnold Robbins via TUHS
tuhs at tuhs.org
Sun Oct 19 17:08:33 AEST 2025
Thanks to everyone who responded to my thoughts on NDEBUG.
> On Fri, 17 Oct 2025, Aharon Robbins via TUHS wrote:
>
> [...]
>
> > However, I'm starting to wonder. Are my habits from yesteryear
> > (defining NDEBUG by default) getting in the way of my being able (or
> > users being able) to find bugs and report them? Should I remove the
> > defining of NDEBUG from the default build? In particular, given the
> > many orders of magnitude increase in CPU and memory of modern systems,
> > is it likely that assertions won't really affect performance all that
> > much?
Dave Horsfall via TUHS <tuhs at tuhs.org> wrote:
> At the very least you should fix the defect that's causing the assertion
> to fail, no? They're there for a reason...
>
> -- Dave
Fixing the defect goes without saying. That's been done.
I've decided to enable assertions in the next release, although I
do plan to review the code to see where I have them and to do a
little performance testing.
Thanks again,
Arnold
More information about the TUHS
mailing list