From 3de0a68a018cbcadc1b818fc0efbf2d3aa981d62 Mon Sep 17 00:00:00 2001 From: kintel Date: Mon, 1 Feb 2010 00:25:01 +0000 Subject: stack trace fix git-svn-id: http://svn.clifford.at/openscad/trunk@392 b57f626f-c46c-0410-a088-ec61d464b74c 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 #endif #include @@ -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(); -- cgit v0.10.1