error.h 956 B

123456789101112131415161718192021222324252627282930313233
  1. /*****************************************************************************
  2. * Error codes
  3. * (C) Cristina Cifuentes
  4. ****************************************************************************/
  5. #pragma once
  6. /* These definitions refer to errorMessage in error.c */
  7. #define USAGE 0
  8. #define INVALID_ARG 1
  9. #define INVALID_OPCODE 2
  10. #define INVALID_386OP 3
  11. #define FUNNY_SEGOVR 4
  12. #define FUNNY_REP 5
  13. #define CANNOT_OPEN 6
  14. #define CANNOT_READ 7
  15. #define MALLOC_FAILED 8
  16. #define NEWEXE_FORMAT 9
  17. #define NO_BB 10
  18. #define INVALID_SYNTHETIC_BB 11
  19. #define INVALID_INT_BB 12
  20. #define IP_OUT_OF_RANGE 13
  21. #define DEF_NOT_FOUND 14
  22. #define JX_NOT_DEF 15
  23. #define NOT_DEF_USE 16
  24. #define REPEAT_FAIL 17
  25. #define WHILE_FAIL 18
  26. void fatalError(Int errId, ...);
  27. void reportError(Int errId, ...);