MCPcopy Create free account
hub / github.com/OSGeo/gdal / CPL_STDCALL CPLGetErrorHandlerUserData

Function CPL_STDCALL CPLGetErrorHandlerUserData

port/cpl_error.cpp:147–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145 */
146
147void *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() */

Callers

nothing calls this directly

Calls 1

CPLGetErrorContextFunction · 0.85

Tested by

no test coverage detected