From b5697421bbc73ed17ef3a8bc003571d1b6351b5c Mon Sep 17 00:00:00 2001 From: Marc Sunet Date: Wed, 19 Nov 2025 19:42:04 -0800 Subject: Rename dxcommon -> dxg --- dxg/dxcommon.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 dxg/dxcommon.h (limited to 'dxg/dxcommon.h') diff --git a/dxg/dxcommon.h b/dxg/dxcommon.h new file mode 100644 index 0000000..addb8c3 --- /dev/null +++ b/dxg/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