/
| 1455 | |
| 1456 | /*****************************************************************************/ |
| 1457 | int proj_errno_set (const PJ *P, int err) { |
| 1458 | /****************************************************************************** |
| 1459 | Set context-errno, bubble it up to the thread local errno, return err |
| 1460 | ******************************************************************************/ |
| 1461 | /* Use proj_errno_reset to explicitly clear the error status */ |
| 1462 | if (0==err) |
| 1463 | return 0; |
| 1464 | |
| 1465 | /* For P==0 err goes to the default context */ |
| 1466 | proj_context_errno_set (pj_get_ctx ((PJ *) P), err); |
| 1467 | errno = err; |
| 1468 | |
| 1469 | return err; |
| 1470 | } |
| 1471 | |
| 1472 | /*****************************************************************************/ |
| 1473 | int proj_errno_restore (const PJ *P, int err) { |
no test coverage detected