Constructor for a GDAL error handler. */
| 74 | Constructor for a GDAL error handler. |
| 75 | */ |
| 76 | ErrorHandler::ErrorHandler() : m_errorNum(0), m_prevHandler(nullptr) |
| 77 | { |
| 78 | std::string value; |
| 79 | |
| 80 | // Will return thread-local setting |
| 81 | const char* set = CPLGetConfigOption("CPL_DEBUG", ""); |
| 82 | m_cplSet = (bool)set; |
| 83 | m_debug = m_cplSet; |
| 84 | } |
| 85 | |
| 86 | |
| 87 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected