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 "test-server-diagnostics-defs.h" 18#define DIAGNOSTIC (id ,severity ,name ,messageFormat )/* */ 19#endif 20 21DIAGNOSTIC (100000 ,Error ,unableToLoadSharedLibrary ,"Unable to load shared library '$0'" ) 22DIAGNOSTIC ( 23100001 , 24Error , 25unableToFindFunctionInSharedLibrary , 26"Unable to find function '$0' in shared library" ) 27DIAGNOSTIC (100002 ,Error ,unableToGetUnitTestModule ,"Unable to get unit test module" ) 28DIAGNOSTIC (100003 ,Error ,unableToFindTest ,"Unable to find test '$0'" ) 29DIAGNOSTIC (100004 ,Error ,unableToFindUnitTestModule ,"Unable to find unit test module '$0'" ) 30 31#undef DIAGNOSTIC