summaryrefslogtreecommitdiffstats
path: root/tools/render-test/diagnostics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/render-test/diagnostics.cpp')
-rw-r--r--tools/render-test/diagnostics.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/render-test/diagnostics.cpp b/tools/render-test/diagnostics.cpp
new file mode 100644
index 000000000..2bc337256
--- /dev/null
+++ b/tools/render-test/diagnostics.cpp
@@ -0,0 +1,21 @@
+// diagnostics.cpp
+#include "diagnostics.h"
+
+namespace Slang {
+
+namespace RenderTestDiagnostics
+{
+#define DIAGNOSTIC(id, severity, name, messageFormat) const DiagnosticInfo name = { id, Severity::severity, #name, messageFormat };
+#include "diagnostic-defs.h"
+#undef DIAGNOSTIC
+}
+
+static const DiagnosticInfo* const kDiagnostics[] =
+{
+#define DIAGNOSTIC(id, severity, name, messageFormat) &RenderTestDiagnostics::name,
+#include "diagnostic-defs.h"
+#undef DIAGNOSTIC
+};
+
+
+} // namespace Slang