Thread Previous • Date Previous • Date Next • Thread Next |
After short discussion with Vaclav, the best compromise would be : #ifdef YADE_DEBUG if (norm...) -> meaningfull message Bruno
So this? assert(norm!=0); // Zero distance between spheres c->getId1() and c->getId2() from `man assert`: The purpose of this macro is to help the programmer find bugs in his program. The message "assertion failed in file foo.c, function do_bar(), line 1287" is of no help at all to a user.
-- _______________ Bruno Chareyre Associate Professor ENSE³ - Grenoble INP Lab. 3SR BP 53 - 38041, Grenoble cedex 9 - France Tél : +33 4 56 52 86 21 Fax : +33 4 76 82 70 43 ________________
Thread Previous • Date Previous • Date Next • Thread Next |