• Home
  • Raw
  • Download

Lines Matching refs:consumer

37 #define SPIRV_ASSERT(consumer, ...) SPIRV_ASSERT_IMPL(consumer, __VA_ARGS__)  argument
39 #define SPIRV_ASSERT(consumer, ...) argument
50 #define SPIRV_DEBUG(consumer, ...) SPIRV_DEBUG_IMPL(consumer, __VA_ARGS__) argument
52 #define SPIRV_DEBUG(consumer, ...) argument
57 #define SPIRV_UNIMPLEMENTED(consumer, feature) \ argument
59 spvtools::Log(consumer, SPV_MSG_INTERNAL_ERROR, __FILE__, \
66 #define SPIRV_UNREACHABLE(consumer) \ argument
68 spvtools::Log(consumer, SPV_MSG_INTERNAL_ERROR, __FILE__, \
83 inline void Log(const MessageConsumer& consumer, spv_message_level_t level, in Log() argument
86 if (consumer != nullptr) consumer(level, source, position, message); in Log()
93 void Logf(const MessageConsumer& consumer, spv_message_level_t level, in Logf() argument
108 Log(consumer, level, source, position, message); in Logf()
119 Log(consumer, level, source, position, longer_message.data()); in Logf()
123 Log(consumer, level, source, position, "cannot compose log message"); in Logf()
132 inline void Error(const MessageConsumer& consumer, const char* source, in Error() argument
134 Log(consumer, SPV_MSG_ERROR, source, position, message); in Error()
141 inline void Errorf(const MessageConsumer& consumer, const char* source, in Errorf() argument
144 Logf(consumer, SPV_MSG_ERROR, source, position, format, in Errorf()
150 #define SPIRV_ASSERT_IMPL(consumer, ...) \ argument
152 consumer, __VA_ARGS__))
154 #define SPIRV_DEBUG_IMPL(consumer, ...) \ argument
156 consumer, __VA_ARGS__))
158 #define SPIRV_ASSERT_1(consumer, condition) \ argument
161 spvtools::Log(consumer, SPV_MSG_INTERNAL_ERROR, __FILE__, \
168 #define SPIRV_ASSERT_2(consumer, condition, message) \ argument
171 spvtools::Log(consumer, SPV_MSG_INTERNAL_ERROR, __FILE__, \
178 #define SPIRV_ASSERT_more(consumer, condition, format, ...) \ argument
181 spvtools::Logf(consumer, SPV_MSG_INTERNAL_ERROR, __FILE__, \
188 #define SPIRV_ASSERT_3(consumer, condition, format, ...) \ argument
189 SPIRV_ASSERT_more(consumer, condition, format, __VA_ARGS__)
191 #define SPIRV_ASSERT_4(consumer, condition, format, ...) \ argument
192 SPIRV_ASSERT_more(consumer, condition, format, __VA_ARGS__)
194 #define SPIRV_ASSERT_5(consumer, condition, format, ...) \ argument
195 SPIRV_ASSERT_more(consumer, condition, format, __VA_ARGS__)
197 #define SPIRV_DEBUG_1(consumer, message) \ argument
199 spvtools::Log(consumer, SPV_MSG_DEBUG, __FILE__, \
203 #define SPIRV_DEBUG_more(consumer, format, ...) \ argument
205 spvtools::Logf(consumer, SPV_MSG_DEBUG, __FILE__, \
210 #define SPIRV_DEBUG_2(consumer, format, ...) \ argument
211 SPIRV_DEBUG_more(consumer, format, __VA_ARGS__)
213 #define SPIRV_DEBUG_3(consumer, format, ...) \ argument
214 SPIRV_DEBUG_more(consumer, format, __VA_ARGS__)
216 #define SPIRV_DEBUG_4(consumer, format, ...) \ argument
217 SPIRV_DEBUG_more(consumer, format, __VA_ARGS__)
219 #define SPIRV_DEBUG_5(consumer, format, ...) \ argument
220 SPIRV_DEBUG_more(consumer, format, __VA_ARGS__)