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.

47 lines
1.4 KiB

  1. //================================================================================
  2. // Copyright (C) 1997 Microsoft Corporation
  3. // Author: RameshV
  4. // Description: some useful defines and other information
  5. //================================================================================
  6. #ifndef UNICODE
  7. #define UNICODE 1
  8. #endif UNICODE
  9. #include <nt.h>
  10. #include <ntrtl.h>
  11. #include <nturtl.h>
  12. #include <windef.h>
  13. #include <winbase.h>
  14. #include <winuser.h>
  15. #include <align.h>
  16. #include <dhcp.h> // need this for DATE_TIME
  17. #if DBG
  18. VOID _inline
  19. RequireF(
  20. IN LPSTR Condition,
  21. IN LPSTR FileName,
  22. IN DWORD LineNumber
  23. ) {
  24. RtlAssert(Condition, FileName, LineNumber, "RequireF" );
  25. }
  26. #define Require(X) do{ if( !(X) ) RequireF(#X, __FILE__, __LINE__ ); } while(0)
  27. #define AssertRet(X,Y) do { if( !(X) ) { RequireF(#X, __FILE__, __LINE__); return Y; } } while(0)
  28. #else DBG
  29. #define Require(X)
  30. #define AssertRet(X,Y) do { if( !(X) ) { return Y; } } while (0)
  31. #endif DBG
  32. #include <..\mm\mminit.h>
  33. #define DebugPrint2(X,Y)
  34. //================================================================================
  35. // end of file
  36. //================================================================================