1// Copyright 2008-2022 Emil Dotchevski and Reverge Studios, Inc.
2
3// Distributed under the Boost Software License, Version 1.0. (See accompanying
4// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6#ifndef BOOST_QVM_STATIC_ASSERT
7
8# if __cplusplus >= 201103L
9
10# include <utility>
11# define BOOST_QVM_STATIC_ASSERT(condition) static_assert(condition, "Boost QVM static assertion failure")
12
13# else
14
15# ifdef __GNUC__
16# define BOOST_QVM_ATTRIBUTE_UNUSED __attribute__((unused))
17# else
18# define BOOST_QVM_ATTRIBUTE_UNUSED
19# endif
20
21# define BOOST_QVM_TOKEN_PASTE(x, y) x ## y
22# define BOOST_QVM_TOKEN_PASTE2(x, y) BOOST_QVM_TOKEN_PASTE(x, y)
23# define BOOST_QVM_STATIC_ASSERT(condition) typedef char BOOST_QVM_TOKEN_PASTE2(boost_qvm_static_assert_failure_,__LINE__)[(condition)?1:-1] BOOST_QVM_ATTRIBUTE_UNUSED
24
25# endif
26
27#endif
28

source code of boost/libs/qvm/include/boost/qvm/static_assert.hpp