summaryrefslogtreecommitdiffstats
path: root/tools/render-test/diagnostics.cpp
blob: 2bc337256d9557f8ed505121803e2f5856d99a35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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