home *** CD-ROM | disk | FTP | other *** search
- /* ========================================================================*/
- /* TODB LIBRARY */
- /* cerr.h */
- /* */
- /* Macro and variables to trap C module's exit() */
- /* */
- /* Version: see TODB.H file */
- /* */
- /* Copyright 1993 Christian Thérien */
- /* All rights reserved */
- /* ========================================================================*/
-
- #ifndef _CERR_H
- #define _CERR_H
-
- #ifdef C_ERR
-
- extern char errmod; /* C module identification */
- extern int errnum; /* error identification */
-
- #define _C_ERR_TRAP_
-
- #define C_ERR_TRAP(mod, e) \
- errmod = mod; errnum = e; exit(-1);
-
- #endif /* C_ERR */
-
- #endif /* _CERR_H */
-