/
| 399 | |
| 400 | /*****************************************************************************/ |
| 401 | void proj_context_errno_set (PJ_CONTEXT *ctx, int err) { |
| 402 | /****************************************************************************** |
| 403 | Raise an error directly on a context, without going through a PJ belonging |
| 404 | to that context. |
| 405 | ******************************************************************************/ |
| 406 | if (nullptr==ctx) |
| 407 | ctx = pj_get_default_ctx(); |
| 408 | ctx->last_errno = err; |
| 409 | if( err == 0 ) |
| 410 | return; |
| 411 | errno = err; |
| 412 | } |
no test coverage detected