Sha256: df4fe673c8729d36b0aa344d3817ebb2363276b5b68123c0b6582369e6b28a19

Contents?: true

Size: 738 Bytes

Versions: 16

Compression:

Stored size: 738 Bytes

Contents

//
//  Copyright (c) 2012 Artyom Beilis (Tonkikh)
//
//  Distributed under the Boost Software License, Version 1.0. (See
//  accompanying file LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BOOST_NOWIDE_LIB_TEST_H_INCLUDED
#define BOOST_NOWIDE_LIB_TEST_H_INCLUDED

#include <stdexcept>
#include <sstream>

#define TEST(x) do {                        \
    if(x)                                   \
        break;                              \
    std::ostringstream ss;                  \
    ss<< "Error " #x " in " << __FILE__     \
      <<':'<<__LINE__<<" "<< __FUNCTION__;  \
    throw std::runtime_error(ss.str());     \
}while(0)

#endif
///
// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
facter-3.12.2.cfacter.20181217 ext/facter/leatherman/vendor/nowide/test/test.hpp
facter-3.12.1.cfacter.20181031 ext/facter/leatherman/vendor/nowide/test/test.hpp
facter-3.11.6.cfacter.20181031 ext/facter/leatherman/vendor/nowide/test/test.hpp
facter-3.12.1.cfacter.20181023 ext/facter/leatherman/vendor/nowide/test/test.hpp
facter-3.11.5.cfacter.20181022 ext/facter/leatherman/vendor/nowide/test/test.hpp
facter-3.12.0.cfacter.20181004 ext/facter/leatherman/vendor/nowide/test/test.hpp
facter-3.12.0.cfacter.20181001 ext/facter/leatherman/vendor/nowide/test/test.hpp
facter-3.12.0.cfacter.20180918 ext/facter/leatherman/vendor/nowide/test/test.hpp
facter-3.11.4.cfacter.20180821 ext/facter/leatherman/vendor/nowide/test/test.hpp
facter-3.11.3.cfacter.20180716 ext/facter/leatherman/vendor/nowide/test/test.hpp
facter-3.11.2.cfacter.20180612 ext/facter/leatherman/vendor/nowide/test/test.hpp
facter-3.9.6.cfacter.20180612 ext/facter/leatherman/vendor/nowide/test/test.hpp
facter-3.11.2.cfacter.20180606 ext/facter/leatherman/vendor/nowide/test/test.hpp
facter-3.9.6.cfacter.20180606 ext/facter/leatherman/vendor/nowide/test/test.hpp
facter-3.11.0.cfacter.20180319 ext/facter/leatherman/vendor/nowide/test/test.hpp
cfacter-3.11.0.rc.20180314 ext/facter/leatherman/vendor/nowide/test/test.hpp