Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
733 B

  1. //+--------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1992
  5. //
  6. // File: error.hxx
  7. //
  8. // Contents: Error code handler routines
  9. //
  10. // History: 19-Mar-92 DrewB Created
  11. //
  12. //---------------------------------------------------------------
  13. #ifndef __ERROR_HXX__
  14. #define __ERROR_HXX__
  15. #if DBG == 1
  16. #define ErrJmp(comp, label, errval, var) \
  17. {\
  18. var = errval;\
  19. comp##DebugOut((DEB_IERROR, "Error %lX at %s:%d\n",\
  20. (unsigned long)var, __FILE__, __LINE__));\
  21. goto label;\
  22. }
  23. #else
  24. #define ErrJmp(comp, label, errval, var) \
  25. {\
  26. var = errval;\
  27. goto label;\
  28. }
  29. #endif
  30. #endif // #ifndef __ERROR_HXX__