mirror of https://github.com/vitalif/openscad
stack trace fix
git-svn-id: http://svn.clifford.at/openscad/trunk@392 b57f626f-c46c-0410-a088-ec61d464b74cstl_dim
parent
a11fbea581
commit
3de0a68a01
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue