Source code of Windows XP (NT5)
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.

57 lines
1010 B

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. UMisc.H
  5. Abstract:
  6. Header file for OR test applications.
  7. Author:
  8. Mario Goertzel [mariogo] Apr-23-95
  9. Revision History:
  10. --*/
  11. #ifndef __UMISC_H
  12. #define __UMISC_H
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #define PrintToConsole printf
  17. extern ULONG Errors;
  18. #define EQUAL(X,Y) if ((X)!=(Y)) {PrintToConsole("%s(%d): Error %d: %s (%ld, 0x%lx) != %s (%ld, 0x%lx)\n", __FILE__, __LINE__, ++Errors, #X, (X), (X), #Y, (Y), (Y)); Errors++; }
  19. #undef ASSERT
  20. #define ASSERT(X) if (! (X) ) {PrintToConsole("%s(%d): Error %d: Assertion %s not true\n", __FILE__, __LINE__, ++Errors, #X); DebugBreak(); Errors++; }
  21. void StringArrayEqual(
  22. IN DUALSTRINGARRAY *,
  23. IN DUALSTRINGARRAY *
  24. );
  25. void UuidsEqual(
  26. IN UUID *,
  27. IN UUID *
  28. );
  29. void PrintDualStringArray(
  30. IN PSZ pszComment,
  31. IN DUALSTRINGARRAY *pdsa,
  32. IN BOOL fCompressed
  33. );
  34. void PrintSid(SID *psid);
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38. #endif // __UMISC_H