summaryrefslogtreecommitdiff
path: root/tools/slang-reflection-test
diff options
context:
space:
mode:
Diffstat (limited to 'tools/slang-reflection-test')
-rw-r--r--tools/slang-reflection-test/slang-reflection-test-main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/slang-reflection-test/slang-reflection-test-main.cpp b/tools/slang-reflection-test/slang-reflection-test-main.cpp
index 3ae614b22..209528927 100644
--- a/tools/slang-reflection-test/slang-reflection-test-main.cpp
+++ b/tools/slang-reflection-test/slang-reflection-test-main.cpp
@@ -963,8 +963,13 @@ int main(
int argc,
char** argv)
{
+ using namespace Slang;
+
SlangSession* session = spCreateSession(nullptr);
- SlangResult res = innerMain(Slang::StdWriters::initDefault(), session, argc, argv);
+
+ auto stdWriters = StdWriters::initDefaultSingleton();
+
+ SlangResult res = innerMain(stdWriters, session, argc, argv);
spDestroySession(session);
return SLANG_FAILED(res) ? 1 : 0;