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

Function mcCheckError_

tutorials/InOutQuery/InOutQuery.cpp:318–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318void mcCheckError_(McResult err, const char* file, int line)
319{
320 std::string error;
321 switch (err) {
322 case MC_OUT_OF_MEMORY:
323 error = "MC_OUT_OF_MEMORY";
324 break;
325 case MC_INVALID_VALUE:
326 error = "MC_INVALID_VALUE";
327 break;
328 case MC_INVALID_OPERATION:
329 error = "MC_INVALID_OPERATION";
330 break;
331 case MC_NO_ERROR:
332 error = "MC_NO_ERROR";
333 break;
334 case MC_RESULT_MAX_ENUM:
335 error = "UNKNOWN";
336 break;
337 }
338 if (err) {
339 std::cout << error << " | " << file << " (" << line << ")" << std::endl;
340 }
341}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected