![](https://secure.gravatar.com/avatar/15f5e6abf26f57e1838c29a8356ce7f8.jpg?s=120&d=mm&r=g)
28 Apr
2008
28 Apr
'08
11:16 a.m.
However, I think it is best if we add some sort of debug
flag so that
people can choose between throwing an exception or doing an assert (crash).
Do you mean a simple #ifdef DEBUG or an ad-hoc flag ? Something like ELLIPTICAL_ARC_DEBUG ?
I meant a global flag, that chooses how to expand the exception throw macros; not just for the elliptical arc implementation. So 2geom either throws exceptions or does asserts.
#define LIB2GEOM_EXCEPTIONS // define to have 2geom throw exceptions instead of asserts