From 9475b11045089c9bc9773b16f7eb84f843db70c4 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Thu, 1 Apr 2021 18:59:24 -0400 Subject: Associating GUID (or UUID) with types (#1776) * #include an absolute path didn't work - because paths were taken to always be relative. * Add mechanism to embed guid inside of type. --- source/slang/slang-compiler.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/slang/slang-compiler.cpp') diff --git a/source/slang/slang-compiler.cpp b/source/slang/slang-compiler.cpp index c034f5f7d..44cfebf13 100755 --- a/source/slang/slang-compiler.cpp +++ b/source/slang/slang-compiler.cpp @@ -185,11 +185,9 @@ namespace Slang // EntryPoint // - static const Guid IID_IEntryPoint = SLANG_UUID_IEntryPoint; - ISlangUnknown* EntryPoint::getInterface(const Guid& guid) { - if(guid == IID_IEntryPoint) + if(guid == slang::IEntryPoint::getTypeGuid()) return static_cast(this); return Super::getInterface(guid); -- cgit v1.2.3