summaryrefslogtreecommitdiffstats
path: root/source/slangc/main.cpp
diff options
context:
space:
mode:
authorTim Foley <tim.foley.is@gmail.com>2017-08-15 11:09:03 -0700
committerGitHub <noreply@github.com>2017-08-15 11:09:03 -0700
commite6abc6821a1bf13a9826e7db74362ce34ccaca2a (patch)
tree34d2ad3937c3986dfa7ce8d660cf902c19315581 /source/slangc/main.cpp
parent4a9b281c154422cdef03ef629718a458f753093f (diff)
parentf64bbf712e4e0719604d1e6728eef74539c9ceda (diff)
Merge pull request #162 from tfoleyNV/gh-38
Improve diagnostics for overlapping/conflicting bindings
Diffstat (limited to 'source/slangc/main.cpp')
-rw-r--r--source/slangc/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/slangc/main.cpp b/source/slangc/main.cpp
index 6fb394cce..da670909d 100644
--- a/source/slangc/main.cpp
+++ b/source/slangc/main.cpp
@@ -34,6 +34,11 @@ int MAIN(int argc, char** argv)
SlangSession* session = spCreateSession(nullptr);
SlangCompileRequest* compileRequest = spCreateCompileRequest(session);
+ spSetDiagnosticCallback(
+ compileRequest,
+ &diagnosticCallback,
+ nullptr);
+
spSetCommandLineCompilerMode(compileRequest);
char const* appName = "slangc";
@@ -46,11 +51,6 @@ int MAIN(int argc, char** argv)
exit(1);
}
- spSetDiagnosticCallback(
- compileRequest,
- &diagnosticCallback,
- nullptr);
-
// Invoke the compiler
#ifndef _DEBUG