| 145 | */ |
| 146 | |
| 147 | void *CPL_STDCALL CPLGetErrorHandlerUserData(void) |
| 148 | { |
| 149 | // get the current threadlocal or global error context user data |
| 150 | CPLErrorContext *psCtx = CPLGetErrorContext(); |
| 151 | if (psCtx == nullptr || IS_PREFEFINED_ERROR_CTX(psCtx)) |
| 152 | abort(); |
| 153 | return reinterpret_cast<void *>(psCtx->psHandlerStack |
| 154 | ? psCtx->psHandlerStack->pUserData |
| 155 | : pErrorHandlerUserData); |
| 156 | } |
| 157 | |
| 158 | /************************************************************************/ |
| 159 | /* CPLGetErrorHandler() */ |
nothing calls this directly
no test coverage detected