MCPcopy Create free account
hub / github.com/cutdigital/mcut / mcDebugOutputCALLBACK

Function mcDebugOutputCALLBACK

tutorials/InOutQuery/InOutQuery.cpp:256–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256void MCAPI_PTR mcDebugOutputCALLBACK(McDebugSource source,
257 McDebugType type,
258 unsigned int id,
259 McDebugSeverity severity,
260 size_t length,
261 const char* message,
262 const void* userParam)
263{
264
265 std::string debug_src;
266 switch(source)
267 {
268 case MC_DEBUG_SOURCE_API:
269 debug_src = "API";
270 break;
271 case MC_DEBUG_SOURCE_KERNEL:
272 debug_src = "KERNEL";
273 break;
274 case MC_DEBUG_SOURCE_FRONTEND:
275 debug_src = "FRONTEND";
276 case MC_DEBUG_SOURCE_ALL:case MC_DEBUG_SOURCE_IGNORE:
277 break;
278 }
279 std::string debug_type;
280 switch(type)
281 {
282 case MC_DEBUG_TYPE_ERROR:
283 debug_type = "ERROR";
284 break;
285 case MC_DEBUG_TYPE_DEPRECATED_BEHAVIOR:
286 debug_type = "DEPRECATION";
287 break;
288 case MC_DEBUG_TYPE_OTHER:
289 debug_type = "OTHER";
290 break;
291 case MC_DEBUG_TYPE_ALL:case MC_DEBUG_TYPE_IGNORE:
292 break;
293 }
294
295
296 std::string severity_str;
297
298 switch (severity) {
299 case MC_DEBUG_SEVERITY_HIGH:
300 severity_str = "HIGH";
301 break;
302 case MC_DEBUG_SEVERITY_MEDIUM:
303 severity_str = "MEDIUM";
304 break;
305 case MC_DEBUG_SEVERITY_LOW:
306 severity_str = "LOW";
307 break;
308 case MC_DEBUG_SEVERITY_NOTIFICATION:
309 severity_str = "NOTIFICATION";
310 break;
311 case MC_DEBUG_SEVERITY_ALL:
312 break;
313 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected