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

Function mcDebugOutput

tests/source/debugVerboseLog.cpp:42–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41#if 0
42static void MCAPI_PTR mcDebugOutput(McDebugSource source,
43 McDebugType type,
44 McUint32 id,
45 McDebugSeverity severity,
46 size_t length,
47 const char* message,
48 const void* userParam)
49{
50
51 // printf("Debug message ( %d ), length=%zu\n%s\n--\n", id, length, message);
52 // printf("userParam=%p\n", userParam);
53
54 std::string debug_src;
55 switch (source) {
56 case MC_DEBUG_SOURCE_API:
57 debug_src = "API";
58 break;
59 case MC_DEBUG_SOURCE_KERNEL:
60 debug_src = "KERNEL";
61 break;
62 case MC_DEBUG_SOURCE_ALL:
63 break;
64 }
65 std::string debug_type;
66 switch (type) {
67 case MC_DEBUG_TYPE_ERROR:
68 debug_type = "ERROR";
69 break;
70 case MC_DEBUG_TYPE_DEPRECATED_BEHAVIOR:
71 debug_type = "DEPRECATION";
72 break;
73 case MC_DEBUG_TYPE_OTHER:
74 // printf("Type: Other");
75 debug_type = "OTHER";
76 break;
77 case MC_DEBUG_TYPE_ALL:
78 break;
79 }
80
81 std::string severity_str;
82
83 switch (severity) {
84 case MC_DEBUG_SEVERITY_HIGH:
85 severity_str = "HIGH";
86 break;
87 case MC_DEBUG_SEVERITY_MEDIUM:
88 severity_str = "MEDIUM";
89 break;
90 case MC_DEBUG_SEVERITY_LOW:
91 severity_str = "LOW";
92 break;
93 case MC_DEBUG_SEVERITY_NOTIFICATION:
94 severity_str = "NOTIFICATION";
95 break;
96 case MC_DEBUG_SEVERITY_ALL:
97 break;
98 }
99

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected