From 556cf073d61875368fe8511b75f5cb7db04ccb52 Mon Sep 17 00:00:00 2001 From: Marc Sunet Date: Wed, 19 Nov 2025 11:24:21 -0800 Subject: Use C++ modules --- dxcommon/dxcommon.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 dxcommon/dxcommon.h (limited to 'dxcommon/dxcommon.h') diff --git a/dxcommon/dxcommon.h b/dxcommon/dxcommon.h new file mode 100644 index 0000000..addb8c3 --- /dev/null +++ b/dxcommon/dxcommon.h @@ -0,0 +1,17 @@ +#pragma once + +#include +#include +#include + +#define THROW(error) throw exception(error, __FILE__, __LINE__) + +#define ThrowIfFailed(result) \ +{\ + if (result != S_OK) \ + {\ + THROW(result);\ + }\ +} + +//#define IID_PPV_ARGS(ppType) __uuidof(**(ppType)), static_cast(ppType) -- cgit v1.2.3