Jeff King <peff@xxxxxxxx> writes: > Well, no, I mostly just said that I do not think there is any point in > defining NDEBUG in the first place, as there is little or no benefit to > removing those asserts from the built product. > ... > Sure, if you want to mass-convert them, doing so with a macro similar to > assert is the simplest way. I don't think we are in a huge hurry to do > that conversion though. I'm not complaining that NDEBUG works as > advertised by disabling asserts. I'm just claiming that it's largely > pointless in our code base, and I'd consider die("BUG") to be our > "usual" style. I agree with all of the above. Given the way how our own code uses assert(), there is little point removing them and turning them over time into "if (...) die(BUG)" would probably be better. Borrowed code like nedmalloc may be a different story, but as you said in a separate message in this thread, I think we are better off leaving that to those who care about that piece of code.