| 316 | } |
| 317 | |
| 318 | void 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected