Files

30 lines
910 B
C++
Raw Permalink Normal View History

2003-05-07 20:59:06 +00:00
#ifndef BOOST_MPL_AUX_TEST_ASSERT_HPP_INCLUDED
#define BOOST_MPL_AUX_TEST_ASSERT_HPP_INCLUDED
2003-05-07 20:59:06 +00:00
2004-09-02 15:41:37 +00:00
// Copyright Aleksey Gurtovoy 2002-2004
2003-05-07 20:59:06 +00:00
//
2004-09-02 15:41:37 +00:00
// 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)
2003-05-07 20:59:06 +00:00
//
// See http://www.boost.org/libs/mpl for documentation.
2008-10-10 09:10:26 +00:00
// $Id$
2004-09-02 15:41:37 +00:00
// $Date$
// $Revision$
2003-05-07 20:59:06 +00:00
2004-09-02 15:41:37 +00:00
#include <boost/mpl/assert.hpp>
2004-10-01 16:32:41 +00:00
#include <boost/preprocessor/cat.hpp>
2003-05-07 20:59:06 +00:00
2004-09-02 15:41:37 +00:00
#define MPL_ASSERT(pred) BOOST_MPL_ASSERT(pred)
#define MPL_ASSERT_NOT(pred) BOOST_MPL_ASSERT_NOT(pred)
#define MPL_ASSERT_MSG(c, msg, types) BOOST_MPL_ASSERT_MSG(c, msg, types)
#define MPL_ASSERT_RELATION(x, rel, y) BOOST_MPL_ASSERT_RELATION(x, rel, y)
2003-05-07 20:59:06 +00:00
2004-10-01 16:32:41 +00:00
#define MPL_ASSERT_INSTANTIATION(x) \
enum { BOOST_PP_CAT(instantiation_test, __LINE__) = sizeof( x ) } \
/**/
#endif // BOOST_MPL_AUX_TEST_ASSERT_HPP_INCLUDED