diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2023-04-08 01:11:27 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-07 10:11:27 -0700 |
| commit | 0468cd0d1a8a1cff1d838a741b050ef11f6d7461 (patch) | |
| tree | e2e9e5731a20f46d524562c932a2371b191fd4e6 /source/core/slang-blob.h | |
| parent | 7bbe7b4780345181cb586b03504ff63f9b8d5c4c (diff) | |
Add SLANG_IID_PPV_ARGS (#2784)
* Add SLANG_IID_PPV_ARGS
To mirror IID_PPV_ARGS from the COM Coding Practices: https://learn.microsoft.com/en-us/windows/win32/LearnWin32/com-coding-practices#the-iid_ppv_args-macro
* Make getTypeGuid constexpr
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/core/slang-blob.h')
| -rw-r--r-- | source/core/slang-blob.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/slang-blob.h b/source/core/slang-blob.h index e528f55a8..aa503a6e5 100644 --- a/source/core/slang-blob.h +++ b/source/core/slang-blob.h @@ -346,7 +346,7 @@ protected: m_scope(scope) { // Cache the ICastable interface if there is one. - blob->queryInterface(ICastable::getTypeGuid(), (void**)m_castable.writeRef()); + blob->queryInterface(SLANG_IID_PPV_ARGS(m_castable.writeRef())); } ComPtr<ISlangUnknown> m_scope; |
