-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.h
More file actions
87 lines (73 loc) · 2.61 KB
/
Copy patherror.h
File metadata and controls
87 lines (73 loc) · 2.61 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
*/
/*
* $Source: Smoke:miner:source:misc::RCS:error.h $
* $Revision: 1.6 $
* $Author: allender $
* $Date: 1995/09/04 11:42:21 $
*
* prototypes for error and warning dialogs
*
* $Log: error.h $
* Revision 1.6 1995/09/04 11:42:21 allender
* made call to debug_video_mode on error and warning
* in case screen is faded
*
* Revision 1.5 1995/08/23 21:28:44 allender
* fix mcc compiler warning
*
* Revision 1.4 1995/08/16 10:00:59 allender
* call key_close on Int3 -- made bios code restart key handler
* if not installed
*
* Revision 1.3 1995/07/05 16:18:21 allender
* new macro for Int3 to restore colors for debugger
*
* Revision 1.2 1995/05/11 12:57:11 allender
* changed assert macro to do something useful
*
* Revision 1.1 1995/05/04 20:12:10 allender
* Initial revision
*
* Revision 1.2 1995/04/18 16:03:06 allender
* *** empty log message ***
*
* Revision 1.1 1995/03/09 09:31:23 allender
* Initial revision
*
*/
#ifndef _ERROR_H
#define _ERROR_H
#include <Types.h> // for the SysBreak calls
void Error(char *format, ...);
void Warning(char *format, ...);
#ifndef NDEBUG
#ifdef powerc
#define BreakToLowLevelDebugger_() SysBreak()
#define BreakStrToLowLevelDebugger_(s) SysBreakStr(s)
#define BreakToSourceDebugger_() Debugger()
#define BreakStrToSourceDebugger_(s) DebugStr(s)
#else // 68K
#define BreakToLowLevelDebugger_() Debugger()
#define BreakStrToLowLevelDebugger_(s) DebugStr(s)
#define BreakToSourceDebugger_() SysBreak()
#define BreakStrToSourceDebugger_(s) SysBreakStr(s)
#endif
extern void debug_video_mode();
#define Int3() do { debug_video_mode(); key_close(); BreakToSourceDebugger_(); } while(0)
#define Assert(expr) MyAssert(expr,#expr,__FILE__,__LINE__)
#else
#define Assert(expr) ((void)0)
#define Int3() ((void)0)
#endif // NDEBUG
#endif