https://github.com/ekg/freebayes
Raw File
Tip revision: 60850dc518fc453622cbb40ad6dd9f67644ed859 authored by Pjotr Prins on 16 December 2020, 10:18:06 UTC
Disable cmake, but leave the file with a message
Tip revision: 60850dc
TryCatch.h
#include <stdexcept> // out_of_range exception
#include <stdlib.h> // abort

// macros which improve our error handling
#ifndef TRY
#define TRY try
#endif
#ifndef CATCH
#define CATCH \
    catch (std::out_of_range outOfRange) { \
        cerr << "exception: " << outOfRange.what() \
        << " at line " << __LINE__ \
        << " in file " << __FILE__ << endl; \
        abort(); \
    }
#endif
back to top