[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: assertions (a question of coding style)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: 2000-09-15 14:29:01 CEST

On Fri, 15 Sep 2000, Branko [iso-8859-2] Čibej wrote:

> Personally, I like to use assert() for the "this can't happen" kind of
> coding errors that can't be recovered from, then don't ever define
> NEDBUG. Of course, this might not be very appropriate for server code ...

IMHO assert()s are good. Used properly they can be removed with (or without)
the right #define and they can be used to simplify debugging.

Then, you know, I'm not one of the "core guys"...

-- 
      Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
Received on Sat Oct 21 14:36:08 2006

This is an archived mail posted to the Subversion Dev mailing list.