error.h 732 B

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