/
| 1471 | |
| 1472 | /*****************************************************************************/ |
| 1473 | int proj_errno_restore (const PJ *P, int err) { |
| 1474 | /****************************************************************************** |
| 1475 | Use proj_errno_restore when the current function succeeds, but the |
| 1476 | error flag was set on entry, and stored/reset using proj_errno_reset |
| 1477 | in order to monitor for new errors. |
| 1478 | |
| 1479 | See usage example under proj_errno_reset () |
| 1480 | ******************************************************************************/ |
| 1481 | if (0==err) |
| 1482 | return 0; |
| 1483 | proj_errno_set (P, err); |
| 1484 | return 0; |
| 1485 | } |
| 1486 | |
| 1487 | /*****************************************************************************/ |
| 1488 | int proj_errno_reset (const PJ *P) { |
no test coverage detected