| 392 | } |
| 393 | |
| 394 | void 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected