assert.cpp 1.0 KB

1234567891011121314151617181920
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // //
  3. // assert.cpp //
  4. // Copyright (C) Microsoft Corporation. All rights reserved. //
  5. // This file is distributed under the University of Illinois Open Source //
  6. // License. See LICENSE.TXT for details. //
  7. // //
  8. ///////////////////////////////////////////////////////////////////////////////
  9. #include "assert.h"
  10. #include "windows.h"
  11. #include "dxc/Support/Global.h"
  12. void llvm_assert(_In_z_ const char *_Message,
  13. _In_z_ const char *_File,
  14. _In_ unsigned _Line,
  15. const char *_Function) {
  16. OutputDebugFormatA("Error: assert(%s)\nFile:\n%s(%d)\nFunc:\t%s\n", _Message, _File, _Line, _Function);
  17. RaiseException(STATUS_LLVM_ASSERT, 0, 0, 0);
  18. }