cmperr.cpp 572 B

1234567891011121314151617
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. #include "ParserPch.h"
  6. #if DEBUG
  7. #include <stdarg.h>
  8. #endif //DEBUG
  9. void ErrHandler::Throw(HRESULT hr)
  10. {
  11. Assert(fInited);
  12. Assert(FAILED(hr));
  13. m_hr = hr;
  14. throw ParseExceptionObject(hr);
  15. }