[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[glob2-devel] A note about assert(false) and abort
From: |
Stéphane Magnenat |
Subject: |
[glob2-devel] A note about assert(false) and abort |
Date: |
Thu, 16 Mar 2006 08:52:19 +0100 |
User-agent: |
KMail/1.9.1 |
Hi,
In glob2, we've used a lot of assert, which is good. Asserts can be disabled
by compiling with NDEBUG defined. But sometimes we want to abort, even in
release, for instance when some critical file is missing. In this case, one
should not use assert(false), but abort(), just after some error message. I
will do this from now on critical situations in glob2.
Steph
- [glob2-devel] A note about assert(false) and abort,
Stéphane Magnenat <=