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

static const DiagnosticInfo* const kDiagnostics[] = {
#define DIAGNOSTIC(id, severity, name, messageFormat) &RenderTestDiagnostics::name,
#include "diagnostic-defs.h"
#undef DIAGNOSTIC
};


} // namespace Slang