forked from rock-simulation/simulation-package_set
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathode-0.12-abort.patch
More file actions
42 lines (34 loc) · 801 Bytes
/
ode-0.12-abort.patch
File metadata and controls
42 lines (34 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
--- ode/src/error.cpp 2013-02-08 10:21:03.886689559 +0100
+++ ode/src/error.cpp 2013-02-08 10:22:33.438692195 +0100
@@ -90,7 +90,8 @@
if (error_function) error_function (num,msg,ap);
else printMessage (num,"ODE Error",msg,ap);
va_end (ap);
- exit (1);
+ if (!error_function)
+ exit (1);
}
@@ -102,7 +103,8 @@
else printMessage (num,"ODE INTERNAL ERROR",msg,ap);
// *((char *)0) = 0; ... commit SEGVicide
va_end (ap);
- abort();
+ if (!debug_function)
+ abort();
}
@@ -145,7 +147,8 @@
MessageBox(0,s,title,MB_OK | MB_ICONWARNING);
}
va_end (ap);
- exit (1);
+ if (!error_function)
+ exit (1);
}
@@ -162,7 +165,8 @@
MessageBox(0,s,title,MB_OK | MB_ICONSTOP);
}
va_end (ap);
- abort();
+ if (!debug_function)
+ abort();
}