12
12
13
13
namespace RTE {
14
14
15
- static BITMAP *g_ScreendumpBuffer = 0 ; // !< Buffer for saving abort screendumps.
16
-
17
15
// / <summary>
18
16
// / Pops up a message box dialog in the OS. For debug purposes mostly.
19
17
// / </summary>
@@ -28,12 +26,11 @@ namespace RTE {
28
26
// / <param name="line">The line where the abortion is made.</param>
29
27
extern bool RTEAbortFunc (const char *description, const char *file, int line);
30
28
extern bool RTEAbortFunc (const std::string description, const char *file, int line);
31
- #define RTEAbort (description ) \
32
- { \
33
- if (RTEAbortFunc (description, __FILE__, __LINE__)) { \
34
- DebuggerBreak \
35
- } \
29
+
30
+ #define RTEAbort (description ) { \
31
+ if (RTEAbortFunc (description, __FILE__, __LINE__)) { DebuggerBreak } \
36
32
}
33
+
37
34
// / <summary>
38
35
// / A souped-up, customized assert function that brings up a nice dialog box on assert failure.
39
36
// / The user can choose to break or ignore the particular assertion failure once, or to always ignore.
@@ -46,14 +43,12 @@ namespace RTE {
46
43
// / <returns>Whether the assertion failed AND the user chose to break in the dialog box.</returns>
47
44
extern bool RTEAssertFunc (bool expression, const char *description, const char *file, int line, bool &alwaysIgnore);
48
45
extern bool RTEAssertFunc (bool expression, const std::string description, const char *file, int line, bool &alwaysIgnore);
49
- #define RTEAssert (expression, description ) \
50
- { \
51
- static bool alwaysIgnore= false ; \
52
- if (!alwaysIgnore) { \
53
- if (RTEAssertFunc (expression, description, __FILE__, __LINE__, alwaysIgnore)) { \
54
- DebuggerBreak \
55
- } \
56
- } \
46
+
47
+ #define RTEAssert (expression, description ) { \
48
+ static bool alwaysIgnore = false ; \
49
+ if (!alwaysIgnore) { \
50
+ if (RTEAssertFunc (expression, description, __FILE__, __LINE__, alwaysIgnore)) { DebuggerBreak } \
51
+ } \
57
52
}
58
53
}
59
54
#endif
0 commit comments