From 65c2e7f1ccc6cdb5daec343c7e32b4a9dc463ae4 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 12 Apr 2022 15:23:53 -0700 Subject: Support `[DllImport]` (#2181) * Support `[DllImport]` * Fix. * Fix. * Fix array type emit in cpp. * Fix. * Fix. * Fix Co-authored-by: Yong He --- prelude/slang-cpp-host-prelude.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'prelude') diff --git a/prelude/slang-cpp-host-prelude.h b/prelude/slang-cpp-host-prelude.h index 90087d158..37f28f8d6 100644 --- a/prelude/slang-cpp-host-prelude.h +++ b/prelude/slang-cpp-host-prelude.h @@ -5,12 +5,13 @@ #include #include -#include "../source/core/slang-string.h" -#include "../source/core/slang-smart-pointer.h" +#include "../source/slang-rt/slang-rt.h" #include "../slang-com-ptr.h" -#include "../slang-gfx.h" +#include "slang-cpp-types.h" using namespace Slang; -using namespace gfx; + +template +using Slang_FuncType = TResult(SLANG_MCALL *)(Args...); #endif -- cgit v1.2.3