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.

56 lines
1.8 KiB

  1. #ifndef __NOMCSCOMMON_H__
  2. #define __NOMCSCOMMON_H__
  3. /*---------------------------------------------------------------------------
  4. File: NoMcsCommon.h
  5. Comments: A minimal set of definitions for code which cannot depend on McsCommon.
  6. This is a temporary hack, to allow the McsVarSet COM object to be installed without requiring
  7. a reboot. McsCommon requires MSVCP60.DLL, which requires an updated version of MSVCRT.DLL,
  8. which is in use by NETAPI32.DLL, and thus requires a reboot to update.
  9. (c) Copyright 1999, Mission Critical Software, Inc., All Rights Reserved
  10. Proprietary and confidential to Mission Critical Software, Inc.
  11. REVISION LOG ENTRY
  12. Revision By: Christy Boles
  13. Revised on 04/28/99 16:18:12
  14. ---------------------------------------------------------------------------
  15. */
  16. #define MC_LOGGING(level) false
  17. #define MC_LogBlockPtrIf(level, str)
  18. #define MC_LOGBLOCKIF(level, str)
  19. #define MC_LOGBLOCK(str)
  20. #define MC_LogBlockPtr(str)
  21. #define MC_LOGIF(level, info) do {}while(0)
  22. #define MC_LOGALWAYS(info) do {}while(0)
  23. #define MC_LOG(info) do {}while(0)
  24. #define MC_LOGTEMPCONTEXT(new_context)
  25. #include <assert.h>
  26. // -------------------------------
  27. // MCSASSERT & MCSASSERTSZ macros.
  28. // -------------------------------
  29. #define MCSASSERT(expr) assert(expr)
  30. #define MCSASSERTSZ(expr,msg) assert(expr)
  31. // -----------------------------
  32. // MCSEXCEPTION & MCSEXCEPTIONSZ
  33. // -----------------------------
  34. #define MCSEXCEPTION(expr) MCSASSERT(expr)
  35. #define MCSEXCEPTIONSZ(expr,msg) MCSASSERTSZ(expr,msg)
  36. // -----------------------
  37. // MCSVERIFY & MCSVERIFYSZ
  38. // -----------------------
  39. #define MCSVERIFY(expr) MCSASSERT(expr)
  40. #define MCSVERIFYSZ(expr,msg) MCSASSERTSZ(expr,msg)
  41. #define MCSINC_Mcs_h
  42. #endif //__NOMCSCOMMON_H__