[Swan] what's NO_DEBUG?

Paul Wouters paul at nohats.ca
Sun Nov 3 21:28:16 EET 2013


On Sun, 3 Nov 2013, D. Hugh Redelmeier wrote:

> (Still trying to understand libreswan source code)
>
> I know what DEBUG means (hey, I introduced it).  But what does NO_DEBUG
> mean?
>
> Double-negatives are harder to understand.
>
> #include/lswlog.h:40:#if !defined(NO_DEBUG)
>
> So what is NO_DEBUG and how does it relate to DEBUG?  And why.

Historic baggage - feel free to kill it.

In fact, measurements we've done in the pas suggest even the DEBUG macro
itself does not increase the footprint that much, so I'd be okay with
enabling that code per default and removing the #ifdef DBUG all together.

Paul


More information about the Swan mailing list