libpll icon indicating copy to clipboard operation
libpll copied to clipboard

should code be defensive about compilation with -DNDEBUG ?

Open mtholder opened this issue 9 years ago • 1 comments

Or is the library intended to only be compiled with asserts enabled?

The really anal approach is to write:

assert(root != NULL);

as:

assert(root != NULL);
if (root == NULL)
{
  *some code here*
}

IMHO, this is too anal. Just thought I'd ask...

mtholder avatar Jun 23 '15 10:06 mtholder