yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
f65d756bf
master
1// 2 3// The file is meant to be included multiple times, to produce different 4// pieces of declaration/definition code related to diagnostic messages 5// 6// Each diagnostic is declared here with: 7// 8// DIAGNOSTIC(id, severity, name, messageFormat) 9// 10// Where `id` is the unique diagnostic ID, `severity` is the default 11// severity (from the `Severity` enum), `name` is a name used to refer 12// to this diagnostic from code, and `messageFormat` is the default 13// (non-localized) message for the diagnostic, with placeholders 14// for any arguments. 15 16#ifndef DIAGNOSTIC 17#error Need to #define DIAGNOSTIC(...) before including 18#define DIAGNOSTIC (id ,severity ,name ,messageFormat )/* */ 19#endif 20 21// 22// -1 - Notes that decorate another diagnostic. 23// 24 25 26DIAGNOSTIC ( 271001 , 28Error , 29expectingCommaComputeDispatch , 30"expected 3 comma separated integers for compute dispatch size" ) 31DIAGNOSTIC ( 321002 , 33Error , 34expectingPositiveComputeDispatch , 35"expected 3 comma positive integers for compute dispatch size" ) 36DIAGNOSTIC (1003 ,Error ,unknownSourceLanguage ,"unknown source language name" ) 37DIAGNOSTIC (1003 ,Error ,unknown ,"unknown source language name" ) 38DIAGNOSTIC (1004 ,Error ,unknownCommandLineOption ,"unknown command-line option '$0'" ) 39DIAGNOSTIC (1005 ,Error ,unexpectedPositionalArg ,"unexpected positional arg" ) 40 41#undef DIAGNOSTIC