Go to the source code of this file.
|
void | DoError (int Error, const char *Message) |
|
◆ DO_NOTHING
◆ NOERROR
Include Files and Type Defines
Definition at line 24 of file danerror.h.
◆ TRAPERROR
◆ VOID_PROC
typedef void(* VOID_PROC) () |
◆ DoError()
void DoError |
( |
int |
Error, |
|
|
const char * |
Message |
|
) |
| |
Public Function Prototypes
This routine prints the specified error message to stderr. It then jumps to the current error trap. If the error trap stack is empty, the calling program is terminated with a fatal error message.
- Parameters
-
Error | error number which is to be trapped |
Message | pointer to a string to be printed as an error message |
- Returns
- None - this routine does not return.
- Note
- History: 4/3/89, DSJ, Created.
Definition at line 42 of file danerror.cpp.
43 if (Message != NULL) {
44 tprintf(
"\nError: %s!\n", Message);