Revision 6c9b2bd7dc6837bf459c9ceaa80114d0cbc15f10 authored by Dmitry Yu. Naumov on 23 March 2021, 15:07:49 UTC, committed by Dmitry Yu. Naumov on 23 March 2021, 15:07:49 UTC
[CMake] Third-party license, ccache setup and msvc folder See merge request ogs/ogs!3535
Error.h
/**
* \file
* \copyright
* Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#pragma once
#include <cstdlib>
#include "Logging.h"
#ifdef OGS_FATAL_ABORT
#define OGS_FATAL(...) \
{ \
BaseLib::console->critical("{}:{} {}() ", __FILE__, __LINE__, \
__FUNCTION__, fmt::format(__VA_ARGS__)); \
std::abort(); \
}
#else // OGS_FATAL_ABORT
#include <stdexcept>
#define OGS_FATAL(...) \
{ \
BaseLib::console->critical("{}:{} {}() ", __FILE__, __LINE__, \
__FUNCTION__, fmt::format(__VA_ARGS__)); \
throw std::runtime_error(fmt::format(__VA_ARGS__)); \
}
#endif // OGS_FATAL_ABORT
Computing file changes ...