This method handles all errors. It will never return. It could easily be changed to use C++ exceptions.
| 605 | // This method handles all errors. It will never return. |
| 606 | // It could easily be changed to use C++ exceptions. |
| 607 | JPGD_NORETURN void jpeg_decoder::stop_decoding(jpgd_status status) |
| 608 | { |
| 609 | m_error_code = status; |
| 610 | free_all_blocks(); |
| 611 | longjmp(m_jmp_state, status); |
| 612 | } |
| 613 | |
| 614 | void* jpeg_decoder::alloc(size_t nSize, bool zero) |
| 615 | { |
no outgoing calls
no test coverage detected