summaryrefslogtreecommitdiff
path: root/src/openscad.cc
diff options
context:
space:
mode:
authorkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-02-01 00:25:01 (GMT)
committerkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-02-01 00:25:01 (GMT)
commit3de0a68a018cbcadc1b818fc0efbf2d3aa981d62 (patch)
tree6f565c427c4f0e806c23f0630e1ba56262870cb4 /src/openscad.cc
parenta11fbea581b5e31df2ec550503c8b8813198d4e1 (diff)
stack trace fix
git-svn-id: http://svn.clifford.at/openscad/trunk@392 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'src/openscad.cc')
-rw-r--r--src/openscad.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/openscad.cc b/src/openscad.cc
index 09e6f8c..a86b3c0 100644
--- a/src/openscad.cc
+++ b/src/openscad.cc
@@ -29,6 +29,7 @@
#ifdef ENABLE_CGAL
#include "cgal.h"
+#include <CGAL/assertions_behaviour.h>
#endif
#include <QApplication>
@@ -70,6 +71,11 @@ int main(int argc, char **argv)
{
int rc = 0;
+#ifdef ENABLE_CGAL
+ // Causes CGAL errors to abort directly instead of throwing exceptions
+ // (which we don't catch). This gives us stack traces without rerunning in gdb.
+ CGAL::set_error_behaviour(CGAL::ABORT);
+#endif
initialize_builtin_functions();
initialize_builtin_modules();
contact: Jan Huwald // Impressum