Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
HRESULTErrorException.inl
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4
6
7 /*
8 ********************************************************************************
9 ****************** Platform::Windows::ThrowIfErrorHRESULT **********************
10 ********************************************************************************
11 */
12 inline void ThrowIfErrorHRESULT (HRESULT hr)
13 {
14 if (not SUCCEEDED (hr)) {
16 }
17 }
18
19}
20
22 template <>
23 inline void ThrowIfNull (const Private_::ConstVoidStar& p, const HRESULT& hr)
24 {
26 }
27}
void Throw(T &&e2Throw)
identical to builtin C++ 'throw' except that it does helpful, type dependent DbgTrace() messages firs...
Definition Throw.inl:43
void ThrowIfNull(const Private_::ConstVoidStar &p, const HRESULT &hr)
Template specialization for ThrowIfNull (), for thing being thrown HRESULT - really throw HRESULTErro...