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.

70 lines
1.4 KiB

  1. #pragma once
  2. #define NUMBER_OF(x) ( (sizeof(x) / sizeof(*x) ) )
  3. #define IFFAILED_EXIT(_x) do {HRESULT __hr = (_x); if (FAILED(__hr)) { goto Exit; } } while (0)
  4. #define IFFALSE_EXIT(_x) do {if (!(_x)) {goto Exit; } } while (0)
  5. #define FN_TRACE_WIN32(args)
  6. #define FN_TRACE()
  7. #define PARAMETER_CHECK(args) IFFALSE_EXIT(args)
  8. #define IFALLOCFAILED_EXIT(_x) do {if ((_x) == NULL) {goto Exit; } } while (0)
  9. #define FUSION_HASH_ALGORITHM HASH_STRING_ALGORITHM_X65599
  10. #define FUSION_NEW_ARRAY(_type, _n) (new _type[_n])
  11. #define FUSION_RAW_ALLOC_(_heap, _cb, _typeTag) (new BYTE[_cb])
  12. #define FUSION_RAW_ALLOC(_cb, _typeTag) (new BYTE[_cb])
  13. #define ASSERT(_x)
  14. #define FUSION_DELETE_ARRAY(_ptr) (delete _ptr)
  15. #define FUSION_RAW_DEALLOC_(_heap, _ptr) (delete _ptr)
  16. #define FUSION_RAW_DEALLOC(_ptr) (delete _ptr)
  17. #define ORIGINATE_WIN32_FAILURE_AND_EXIT(_x, _le) do { ::SetLastError(_le); goto Exit; } while (0)
  18. #define FUSION_DBG_LEVEL_VERBOSE 0
  19. #define INTERNAL_ERROR_CHECK(_e)
  20. #define FUSION_NEW_SINGLETON(_type) (new _type)
  21. #define FUSION_DELETE_SINGLETON(_ptr) (delete _ptr)
  22. #define HARD_ASSERT_ACTION(_e)
  23. ULONG
  24. FusionpDbgPrintEx(
  25. ULONG Level,
  26. PCSTR Format,
  27. ...
  28. );
  29. int
  30. FusionpCompareStrings(
  31. PCWSTR psz1,
  32. SIZE_T cch1,
  33. PCWSTR psz2,
  34. SIZE_T cch2,
  35. bool fCaseInsensitive
  36. );
  37. BOOL
  38. FusionpHashUnicodeString(
  39. PCWSTR szString,
  40. SIZE_T cchString,
  41. PULONG HashValue,
  42. DWORD dwCmpFlags
  43. );