Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
7d17268c
Commit
7d17268c
authored
16 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
don't use abort(), it's really annoying (on Mac it triggers the system "submit
a crash report, blabla..." dialog)
parent
0ae334a4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Fltk/Message.cpp
+6
-7
6 additions, 7 deletions
Fltk/Message.cpp
with
6 additions
and
7 deletions
Fltk/Message.cpp
+
6
−
7
View file @
7d17268c
// $Id: Message.cpp,v 1.9
0
2008-04-1
1 09:55:48
geuzaine Exp $
// $Id: Message.cpp,v 1.9
1
2008-04-1
6 15:49:35
geuzaine Exp $
//
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -36,7 +36,7 @@ extern Context_T CTX;
void
Debug
()
{
printf
(
"
debug
!
\n
"
);
printf
(
"
oops
!
\n
"
);
}
void
Msg
(
int
level
,
const
char
*
fmt
,
...)
...
...
@@ -180,11 +180,10 @@ void Exit(int level)
UnlinkFile
(
CTX
.
tmp_filename_fullpath
);
if
(
level
){
// in case of an abnormal exit, force the abort directly
// (bypassing any post main stuff, e.g. destructors for static
// variables). This still guarantees that any open streams are
// flushed and closed, but can prevent nasty infinite loops.
abort
();
// abnormal program termination: exit directly (we used to call
// abort() to flush open streams, but it behaves in weird ways
// e.g. on Mac... so just exit!
exit
(
level
);
}
// if we exit cleanly (level==0) and we are in full GUI mode, save
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment