File: MidiErrorHandler.h

package info (click to toggle)
rosegarden 2.1pl3-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,604 kB
  • ctags: 4,346
  • sloc: ansic: 42,763; sh: 1,730; makefile: 441; tcl: 320
file content (45 lines) | stat: -rw-r--r-- 932 bytes parent folder | download | duplicates (4)
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
/*
---------------------------------------------------------------------------------------------
			MIDI Sequencer - Final Year Project, A.J. Green
---------------------------------------------------------------------------------------------

File Name:	ErrorHandler.h

Description:	Defines generic error handling for the midi sequencer application.

Author:		AJG

History:

Update	Date		Programmer	Comments
======	====		==========	========
001	16/12/93	AJG		File Created.

--------------------------------------------------------------------------------------------
*/

typedef enum
{
	NON_FATAL_REPORT_TO_STDERR,
	NON_FATAL_REPORT_TO_MSGBOX,
	FATAL
}
error_level;

#define Error(X, Y) ErrorHandler(X, Y, __LINE__, __FILE__)

#ifdef YAWN_AVAILABLE

#include <MidiXInclude.h>

void ErrorHandlerInitialise(Widget ErrTopLevel);

#else

#define ErrorHandlerInitialise(x)

#endif

void ErrorHandler(error_level, char *, int, char *);