stack trace fix

git-svn-id: http://svn.clifford.at/openscad/trunk@392 b57f626f-c46c-0410-a088-ec61d464b74c
stl_dim
kintel 2010-02-01 00:25:01 +00:00
parent a11fbea581
commit 3de0a68a01
1 changed files with 6 additions and 0 deletions

View File

@ -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();