error.h 734 B

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