MCPcopy Create free account
hub / github.com/OSGeo/gdal / CPLDebugProgress

Function CPLDebugProgress

port/cpl_error.cpp:785–801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

783// Do not include CPLDebugProgress. Only available in custom builds.
784#else
785void CPLDebugProgress(const char *pszCategory,
786 CPL_FORMAT_STRING(const char *pszFormat), ...)
787
788{
789 CPLErrorContext *psCtx = CPLGetErrorContext();
790 if (psCtx == nullptr || IS_PREFEFINED_ERROR_CTX(psCtx))
791 return;
792
793 psCtx->bProgressMode = true;
794
795 va_list args;
796 va_start(args, pszFormat);
797 CPLvDebug(pszCategory, pszFormat, args);
798 va_end(args);
799
800 psCtx->bProgressMode = false;
801}
802#endif // !WITHOUT_CPLDEBUG
803
804/**********************************************************************

Callers 1

Calls 2

CPLGetErrorContextFunction · 0.85
CPLvDebugFunction · 0.85

Tested by

no test coverage detected