Skip to content

Commit 4f9c6de

Browse files
authored
Add ifndef check for THROW_IF_FAILED (#201)
1 parent 44ead4f commit 4f9c6de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tools/WinMLRunner/src/Common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ enum WINML_MODEL_TEST_PERF
4040
#define MAX_PROFILING_LOOP 100
4141

4242
using namespace winrt;
43-
43+
#ifndef THROW_IF_FAILED
4444
#define THROW_IF_FAILED(hr) \
4545
{ \
4646
if (FAILED(hr)) \
4747
throw hresult_error(hr); \
4848
}
49-
49+
#endif
5050
inline std::wstring MakeErrorMsg(HRESULT hr)
5151
{
5252
std::wostringstream ss;

0 commit comments

Comments
 (0)