blob: 4421db09a06b24ceae55b9f410650fff88388f51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "slang-blob.h"
namespace Slang {
// Allocate static const storage for the various interface IDs that the Slang API needs to expose
static const Guid IID_ISlangUnknown = SLANG_UUID_ISlangUnknown;
static const Guid IID_ISlangBlob = SLANG_UUID_ISlangBlob;
ISlangUnknown* BlobBase::getInterface(const Guid& guid)
{
return (guid == IID_ISlangUnknown || guid == IID_ISlangBlob) ? static_cast<ISlangBlob*>(this) : nullptr;
}
} // namespace Slang
|