From 255fd5873f65a6b01d5385c277d55612dc3cc587 Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 28 Mar 2022 22:14:33 -0700 Subject: Allow slangc to generate exe from .slang file. (#2170) --- source/core/slang-smart-pointer.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/core/slang-smart-pointer.h') diff --git a/source/core/slang-smart-pointer.h b/source/core/slang-smart-pointer.h index 2e5821ffd..a6aa35906 100644 --- a/source/core/slang-smart-pointer.h +++ b/source/core/slang-smart-pointer.h @@ -10,7 +10,7 @@ namespace Slang { // Base class for all reference-counted objects - class RefObject + class SLANG_RT_API RefObject { private: UInt referenceCount; @@ -86,8 +86,7 @@ namespace Slang SLANG_FORCE_INLINE const T* as(const RefObject* obj) { return dynamicCast(obj); } // "Smart" pointer to a reference-counted object - template - struct RefPtr + template struct SLANG_RT_API RefPtr { RefPtr() : pointer(nullptr) -- cgit v1.2.3