home *** CD-ROM | disk | FTP | other *** search
/ Total C++ 2 / TOTALCTWO.iso / borland / 32addres.pak / MACRO.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  808b  |  27 lines

  1. // BDE32 3.x - (C) Copyright 1996 by Borland International
  2.  
  3. #ifndef __MACRO_H
  4. #define __MACRO_H
  5.  
  6. #define CHKERR(parm) DBIError(__FILE__, __LINE__, \
  7.                             #parm, parm) ; \
  8.                             if (GlobalDBIErr) { \
  9.                                return GlobalDBIErr ;}
  10.  
  11. #define CHKERR_CLEANUP(parm) DBIError(__FILE__, __LINE__, \
  12.                             #parm, parm) ; \
  13.                             if (GlobalDBIErr) { \
  14.                                goto CleanUp ;}
  15.  
  16. #define CHKERR_NODISPLAY(parm) if (parm) { \
  17.                                goto CleanUp ;}
  18.  
  19. #define CLEANUP(parm) { GlobalDBIErr = parm;\
  20.                                goto CleanUp ;}
  21.  
  22. extern DBIResult GlobalDBIErr;
  23.  
  24. DBIResult DBIError(pCHAR, UINT16, pCHAR, DBIResult);
  25.  
  26. #endif
  27.