/* This file is part of cpp-ethereum. cpp-ethereum is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. cpp-ethereum is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with cpp-ethereum. If not, see . */ /** @file Common.cpp * @author Gav Wood * @date 2014 */ #include "Common.h" using namespace std; using namespace dev; namespace dev { char const* Version = "0.7.3"; #if defined(__GNUC__) __attribute__((gnu_inline, always_inline)) #endif inline bool assertAux(bool _a, char const* _aStr, unsigned _line, char const* _file, char const* _func) { bool ret = _a; if (!ret) { std::cerr << "Assertion failed:" << _aStr << " [func=" << _func << ", line=" << _line << ", file=" << _file << "]" << std::endl; #if ETH_DEBUG debug_break(); #endif } return !ret; } }