All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
danerror.h File Reference

Go to the source code of this file.


#define NOERROR   0
#define DO_NOTHING   0


typedef int TRAPERROR
typedef void(* VOID_PROC )()


void DoError (int Error, const char *Message)

Macro Definition Documentation

#define DO_NOTHING   0

Definition at line 25 of file danerror.h.

#define NOERROR   0

Include Files and Type Defines

Definition at line 24 of file danerror.h.

Typedef Documentation

typedef int TRAPERROR

Definition at line 27 of file danerror.h.

typedef void(* VOID_PROC)()

Definition at line 28 of file danerror.h.

Function Documentation

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.

Errorerror number which is to be trapped
Messagepointer to a string to be printed as an error message
None - this routine does not return.
History: 4/3/89, DSJ, Created.

Definition at line 42 of file danerror.cpp.

42  {
43  if (Message != NULL) {
44  tprintf("\nError: %s!\n", Message);
45  }
47  err_exit();
48 } /* DoError */
void err_exit()
Definition: globaloc.cpp:74
#define tprintf(...)
Definition: tprintf.h:31
#define NULL
Definition: host.h:144