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.

31 lines
660 B

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