error.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* $Id$
  2. * MegaZeux
  3. *
  4. * Copyright (C) 1996 Greg Janson
  5. * Copyright (C) 1998 Matthew D. Williams - dbwilli@scsn.net
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. */
  21. /* Declaration for ERROR.CPP */
  22. #ifndef __ERROR_H
  23. #define __ERROR_H
  24. //Call for an error OR a warning. Type=0 for a warning, 1 for a recoverable
  25. //error, 2 for a fatal error. Options are (bits set in options and returned
  26. //as action) FAIL=1, RETRY=2, EXIT TO DOS=4, OK=8, HELP=16 (OK is for usually
  27. //only for warnings) Code is a specialized error code for debugging purposes.
  28. //Type of 3 for a critical error.
  29. #ifdef __cplusplus
  30. int error(char far *string,char type,char options,int segment,
  31. unsigned int code=0);
  32. extern "C" int error2(char far *string,char type,char options,int segment,
  33. unsigned int code=0);
  34. #else
  35. int error2(char far *string,char type,char options,int segment,
  36. unsigned int code);
  37. #endif
  38. #endif