-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathlrexerror.h
More file actions
62 lines (49 loc) · 1.58 KB
/
Copy pathlrexerror.h
File metadata and controls
62 lines (49 loc) · 1.58 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
#ifndef __LREXERROR_H
#define __LREXERROR_H
#pragma force_top_level
#pragma include_only_once
/******************************************************************************
**
** Copyright (C) 1995, an unpublished work by The 3DO Company. All rights
*reserved.
** This material contains confidential information that is the property of The
*3DO Company.
** Any unauthorized duplication, disclosure or use is prohibited.
** $Id: lrexerror.h,v 1.3 1994/10/27 21:05:22 vertex Exp $
**
******************************************************************************/
#include "operror.h"
#define ER_LREX MakeErrId ('L', 'x')
#define LREXLOADIMAGE_ERR MAKETERR (ER_LREX, ER_SEVERE, ER_C_NSTND, 1)
#define LREXGRAPHICS_ERR MAKETERR (ER_LREX, ER_SEVERE, ER_C_NSTND, 2)
#define LREXALLOC_ERR MAKETERR (ER_LREX, ER_SEVERE, ER_C_NSTND, 3)
/*
The error text to print out with PrintfSysErr()
*/
static char *LREXErrors[] = {
"no error",
/* LREXLOADIMAGE_ERR */
"Error in loading background image",
/* LREXGRAPHICS_ERR */
"Unable to open graphics",
/* LREXALLOC_ERR */
"Unable to allocate necessary memory",
};
#define LREXMAX_ERROR_LEN 40
/*
Tag args for the error text item
*/
static TagArg LREXErrorTags[]
= { TAG_ITEM_NAME,
(void *)"lrex",
ERRTEXT_TAG_OBJID,
(void *)((ER_TASK << ERR_IDSIZE) | ER_LREX),
ERRTEXT_TAG_MAXERR,
(void *)(sizeof (LREXErrors) / sizeof (char *)),
ERRTEXT_TAG_TABLE,
(void *)LREXErrors,
ERRTEXT_TAG_MAXSTR,
(void *)LREXMAX_ERROR_LEN,
TAG_END,
0 };
#endif /* __LREXERROR_H */