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

Function mcCheckError_

tutorials/BasicCmdLineApp/BasicCmdLineApp.cpp:394–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394void mcCheckError_(McResult status, const char* file, McUint32 line)
395{
396 std::string error;
397 switch (status) {
398 case MC_OUT_OF_MEMORY:
399 error = "MC_OUT_OF_MEMORY";
400 break;
401 case MC_INVALID_VALUE:
402 error = "MC_INVALID_VALUE";
403 break;
404 case MC_INVALID_OPERATION:
405 error = "MC_INVALID_OPERATION";
406 break;
407 case MC_NO_ERROR:
408 error = "MC_NO_ERROR";
409 break;
410 case MC_RESULT_MAX_ENUM:
411 error = "UNKNOWN";
412 break;
413 }
414 if (status) {
415 std::cout << error << " | " << file << " (" << line << ")" << std::endl;
416 }
417
418}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected